Information générale
Catégorie:
COM, DCOM et OLE automation
Titre:
How can a component reference a form on the calling App?
I have a function that prints the details of a form using a revised method of PrintForm. I want to be able to put this into our standard Utilities module. However, I do not know how to pass a reference to this form across to the component.
So, I want a button on a form to call the function as.....
call SuperPrintForm(me)
and the function to do something like....
Public Function SuperPrintForm(theform as Form)
msgbox "This routine was called by " & theform.name
end Function
This will work fine with the function being part of the application. But when it is stored in another component (ActiveX DLL), the FORM as a datatype is not permitted.
Can anyone tell me how to get around this please?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement