Modules and Events

Cableguy

Expert
Licensed User
HI, trying to keep a "clean house", i created several modules in my app...
One of wich is in charge of initializing and setting Objects....
These Objects are ALL used in others forms...
How can I use an event in a module were the Object was NOT created?
 

Cableguy

Expert
Licensed User
As a workaround I'm "delegating" the event from the dolule who "Owns" the object and call a sub on the module I wish to trigger...
 

Cableguy

Expert
Licensed User
That would sometime be troubling as if we only have "Working" Subs and no 2initialization" Sub, the addevent keyword will error out...
I will post this in wish list...The possability of turning an event "Public"..
 

agraham

Expert
Licensed User
we only have "Working" Subs and no 2initialization" Sub
You can put initialisation code in Globals in each module - works quite well for me. As far as I know there is no limitation on what you can do there.
the addevent keyword will error out...
Why? :confused:
 
Top