|
-
Mar 29th, 2002, 07:34 PM
#1
ActiveX Initialize Event
Hi,
I just need some clarificaitonon the time when the initialize event is called.
If I have a
Public Function OpenMyObject(byval strArg as string) as MyObject
and I also use the Initialize Event.
My question is this:
If the application using the Object does the following:
Dim objNew as New MyObject
the Initialize event is called.
If the application using the Object does the following:
Dim ObjReOpen as MyObject
Set ObjReOpen = OpenMyObject (strVariable)
does the initialize event get called and the function OpenMyObject or is it just the function OpenMyObject?
Thanks.
Needaname16
-
Mar 29th, 2002, 07:37 PM
#2
Sorry Typo
I just need some clarificaitonon
Should have read:
I just need some clarification on
Thanks.
-
Mar 31st, 2002, 07:26 PM
#3
Please!!!!!
Surely someone knows this..... furthermore:
As above I am trying to create an object that can be both initialised as a new object with no files previously associated to it, and initialised as a new object that opens a file previously created. When I went to implement the OpenMyObject function I realised I didn't know how to return the object. Basically (with one of my files) I am trying to do the same thing that Access does.
i.e. the user can either go
dim ObjTemp as MyObject
Set ObjTemp = OpenMyObject(strpath)
Or
dim ObjTemp as New MyObject
Please Help
Needaname16
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
|