Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if object reference is Nothing
Message
From
13/04/2001 10:13:47
 
 
To
13/04/2001 09:39:03
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, United States
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00495258
Message ID:
00495271
Views:
13
>I tried to do the following where oRef is an object reference Dim'd elsewhere :
>
>If oRef = Nothing Then
>    Set oRef = New Object
>End If
>
>
>But it gives me an error. What is there correct way to see if an object reference is a valid object or has not been assigned/created yet? Thanks,

If oRef Is Nothing Then
.. etc.
Previous
Reply
Map
View

Click here to load this message in the networking platform