|
-
Dec 11th, 2001, 12:08 PM
#1
Thread Starter
Addicted Member
Creating Objects
In my program, when the user presses a start button, I create an object of an activeX.dll. During the run of the program, the user is allowed to see a form or not see a form that is part of the dll. The problem is, I need to know how to determine if I have already created the object or not.
My code is something like this:
Set ObjServer = CreateObject("myproject.clsMyClass")
objServer.StartProgram
When the clien app is loaded, this above code does not occur unless they want to start the process. However, they can just choose another button which will show a form in that DLL. the code is this
if objserver has been set then
Objserver.ShowLogForm
Else
Set ObjServer = CreateObject("MyProject.clsMyClass")
ObjServer.ShowLogForm
end if
I need to know if the object was created yet?
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
|