Results 1 to 3 of 3

Thread: Check if object = Nothing

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 1999
    Posts
    38

    Post

    How can you check if an object is set to Nothing ??

    the instruction

    If obj = Nothing

    does not work ..

  2. #2
    New Member
    Join Date
    Sep 1999
    Location
    Sydney
    Posts
    10

    Post

    IF obj = ""


  3. #3
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    You can use Is Nothing:
    If MyObject Is Nothing Then
    ' do something
    End If

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