|
-
Jun 27th, 2001, 09:18 PM
#1
Thread Starter
Hyperactive Member
How to determine if object has been set
I know I've seen this here before, but how can I determine if an object has been set or not, to avoid Error 91?
I've tried IsNull, = Nothing, etc but they don't work
I need something like:
(form level code)
Private oMyObject as CMyObject
Private Sub DoSomething()
If oMyObject (doesnt yet exist) Then Set oMyObject = New CMyObject
....
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|