Jul 29, 2004 #1 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.
Hi experts out there, we need to test wether an object is set or is <nothing>. How can we do this? greets Hansjoerg.
Jul 29, 2004 #2 LittleSmudge Programmer Mar 18, 2002 2,848 GB 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. Upvote 0 Downvote
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.
Jul 29, 2004 #3 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Jul 29, 2004 Thread starter #4 hgrafen Programmer Jul 20, 2004 9 DE Thank's! It works. Hansjoerg. Upvote 0 Downvote