Results 1 to 3 of 3

Thread: ActiveX Initialize Event

  1. #1
    needaname16
    Guest

    Talking 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

  2. #2
    needaname16
    Guest
    Sorry Typo

    I just need some clarificaitonon
    Should have read:

    I just need some clarification on

    Thanks.

  3. #3
    needaname16
    Guest

    Unhappy 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
  •  



Click Here to Expand Forum to Full Width