Using Dinamic array

O

Oded Kovach

Hello there

I have some data that i need to use dinamic array for using it

I've discovered that i can use UBound function to know the size of my array.

But the problem is on the start point when i declare it. Then the ubound
function gives me an error of out of range when i try to diterme the size of
my array (which is 0 in this case) is there another way to diterme wether
the dinamic array have allocation and not?
 
G

gandalf

-----Original Message-----
Hello there

I have some data that i need to use dinamic array for using it

I've discovered that i can use UBound function to know the size of my array.

But the problem is on the start point when i declare it. Then the ubound
function gives me an error of out of range when i try to diterme the size of
my array (which is 0 in this case) is there another way to diterme wether
the dinamic array have allocation and not?


.
When exactly do you use ubound?

dim myarray() as string 'declaring
redim myarray(3) as string 'initialising array
msgbox ubound(myarray)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top