>>"Is Nothing" in stead of "= nothing"
>
>So the opposite (which is what I need would be:
>
>
If Not oTest Is Nothing Then
> MsgBox ("object")
>Else
> MsgBox ("nothing")
>End If
>
>correct?
I prefer a lot this syntax:
If oTest Is Nothing Then
MsgBox ("nothing")
Else
MsgBox ("object")
End If
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com