Click to See Complete Forum and Search --> : IsNothing Function ?


October 20th, 1999, 08:45 AM
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

Crazy D @ Work
October 20th, 1999, 09:41 AM
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
jep, that's it


Thx