Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / June 2005



Tip: Looking for answers? Try searching our database.

check if object is set

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
smk23 - 28 Jun 2005 23:23 GMT
Is there something more elegant than the following line to check (in vba)
whether and object is set?

Dim frm as form

If Not frm Is Nothing Then
...
Thanks
Signature

sam

Paul Clement - 29 Jun 2005 16:14 GMT
¤ Is there something more elegant than the following line to check (in vba)
¤ whether and object is set?
¤
¤ Dim frm as form
¤
¤ If Not frm Is Nothing Then
¤ ...

No. Nothing is the cleanest method.

Paul
~~~~
Microsoft MVP (Visual Basic)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.