Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is object set to Nothing?

0 views
Skip to first unread message

Alan Rueckgauer

unread,
Nov 5, 1998, 3:00:00 AM11/5/98
to
If your_object_var Is Nothing Then
'do whatever
End If

Conversely, to test that it has a legit value...

If Not your_object_var Is Nothing Then


--
Alan Rueckgauer
Rueckgauer Systems
Windows NT & Internet Solutions
www.rueckgauer.com

=====
Andrew T wrote in message <3642255F...@writeme.com>...
>Does anybody know how to check whether
>object variable was set or it was "nothing"?
>
>I need something like this:
>
>if <object_var>=nothing then
> ....
>end if
>
>Thanks
>Andrew Twer


Andrew T

unread,
Nov 6, 1998, 3:00:00 AM11/6/98
to

Andrew T

unread,
Nov 6, 1998, 3:00:00 AM11/6/98
to Alan Rueckgauer
Thanks a lot, it runs great!
Andrew Tver

Alan Rueckgauer wrote:
>
> If your_object_var Is Nothing Then
> 'do whatever
> End If
>
> Conversely, to test that it has a legit value...
>
> If Not your_object_var Is Nothing Then
>
> --
> Alan Rueckgauer
> Rueckgauer Systems
> Windows NT & Internet Solutions
> www.rueckgauer.com
>
> =====
> Andrew T wrote in message <3642255F...@writeme.com>...

Elocutu...@hotmail.com

unread,
Nov 6, 1998, 3:00:00 AM11/6/98
to
In article <3642255F...@writeme.com>,

a...@writeme.com wrote:
> Does anybody know how to check whether
> object variable was set or it was "nothing"?
>
> I need something like this:
>
> if <object_var>=nothing then

If IsNothing(object_var)

--Elocutus

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

Bertie Wooster

unread,
Nov 9, 1998, 3:00:00 AM11/9/98
to
Correction:

The syntax you require is: If object_var Is Nothing Then ...

Bertie
(Elocutus was confused with the IsNull() function.)

Elocutu...@hotmail.com wrote in message
<71vfc6$fr6$1...@nnrp1.dejanews.com>...

0 new messages