CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    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


  2. #2
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    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 :-)

  3. #3
    Guest

    Re: IsNothing Function ?

    jep, that's it


    Thx




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured