|
-
September 21st, 2001, 10:22 AM
#1
isNothing ???
If I have a variable declared like this :
Dim Foo as Collection
How do I find out whether the variable was initialized to anything either by set Foo = new Collection
or by set Foo = Bar
I've tried isEmpty(), isObject(), isNull(), If Foo = Nothing Then.
The first three return the same for initialized and not initialized object, the last one leads to an error.
For now I've changed the declaration to
Dim Foo as Variant
since then the isEmpty() works, but I don't think this is the best way.
Thanks, Jenda
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
|