Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if object reference is Nothing
Message
From
13/04/2001 09:39:03
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, United States
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Check if object reference is Nothing
Miscellaneous
Thread ID:
00495258
Message ID:
00495258
Views:
52
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,
--Shane
Next
Reply
Map
View

Click here to load this message in the networking platform