Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Oct 2002
    Posts
    114
    Thanks
    0
    Thanked 0 Times in 0 Posts

    test for 'Nothing' ? (2000/sp3)

    How can I test whether a variable is set to "Nothing" ? Can't seem to figure this one one.. maybe I'm overlooking the obvious?

    ..dane

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: test for 'Nothing' ? (2000/sp3)

    Use the keyword Is, not =.

    If MyVariable Is Nothing Then
    ...
    End If

  3. #3
    2 Star Lounger
    Join Date
    Oct 2002
    Posts
    114
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: test for 'Nothing' ? (2000/sp3)

    Du-ohhh!! silly oversight.

    thanks Hans.

Posting Permissions

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