|
-
Sep 10th, 2001, 01:21 PM
#1
dynamic array: how do I check if it has been initialized?
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
-
Sep 10th, 2001, 02:07 PM
#2
The best I've seen on this one is just trap the error and react accordingly.
-
Sep 10th, 2001, 04:08 PM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|