Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To be or not to be - is a Object set or not?

Status
Not open for further replies.

hgrafen

Programmer
Jul 20, 2004
9
DE
Hi experts out there,

we need to test wether an object is set or is <nothing>. How can we do this?

greets
Hansjoerg.
 

Code:
If objectName Is Nothing Then


It's that IS word that catch so many people out.


G.

G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
something like this ?
If Not myObject Is Nothing Then
MsgBox "OK, myObject is set"
Else
MsgBox "myObject Is Nothing"
End If

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top