|
-
October 20th, 1999, 08:45 AM
#1
IsNothing Function ?
Hi,
I am using VB5 SP3 and have the following question.
Under IsObject in the Doku there is a Function called IsNothing,
but i can't use it
... IsNothing(object1.Item(1))
...
doesn't work
if object1.item(1) = nothing
doesn't work too
Any idea for solving this problem ?
I want to find out if a object a nested collection with 'subcollections'
has a item or not
structure is something like that
object
-item1
+-item1
+-item1
+text"bla"
+-item2
+Nothing
+-item2
+-item3
-item2
+-item2
+Nothing
....
thx
-
October 20th, 1999, 09:41 AM
#2
Re: IsNothing Function ?
If MyObject is nothing then
MsgBox "MyObject is nothing"
else
MsgBox "MyObject is something"
End If
Hope this helps
Crazy D @ Work :-)
-
October 20th, 1999, 10:10 AM
#3
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
|