Here's the code example...
Dim myArray() as string
later I will redim the array in a for/next or a Do/While Loop
x = ubound(myArray) +1 <<< causes error 9 if no elements exist
already!
redim Preserve myArray(x)
Here's the question... how do I test the array to see if it was already
initialised without trapping Error 9 (array not initialised)?
I have tried IsArray(myArray ) and that returns TRUE and I have tried a whole
bunch of others IsEmpty etc etc
Any help appreciated
Ray
Dim myArray() as string
later I will redim the array in a for/next or a Do/While Loop
x = ubound(myArray) +1 <<< causes error 9 if no elements exist
already!
redim Preserve myArray(x)
Here's the question... how do I test the array to see if it was already
initialised without trapping Error 9 (array not initialised)?
I have tried IsArray(myArray ) and that returns TRUE and I have tried a whole
bunch of others IsEmpty etc etc
Any help appreciated
Ray
Comment