To call for example Ubound for a dynamic array that hasn't been initialized causes an error. Is there a way to check first for that?
example:
dim intArray() as integer
debug.print ubound(intArray) '---> error
thx,
Helger
Printable View
To call for example Ubound for a dynamic array that hasn't been initialized causes an error. Is there a way to check first for that?
example:
dim intArray() as integer
debug.print ubound(intArray) '---> error
thx,
Helger
The best I've seen on this one is just trap the error and react accordingly.
Thanks I'll use this then - or make sure the array is dimmed.
Strange they didn't throw in a function for that.
thx,
Helger