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
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>...
If IsNothing(object_var)
--Elocutus
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
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>...