Magic User Group

Magic Wiki-Wakka : ExposedEvents

HomePage :: CATEGORIES | Index :: Changes :: Comments :: Search :: Login/Register

How to call a program in the Main Application from within a Component


See also:
ExposedEvents10 by Norbert based on Frank :-)




Sometimes you can run into problems when you use Components. When executing a componentprogram you sometimes need a program from within the Main Application. Now with components you cann't do a recursive call, meaning:

Main Application A has a component B, component B calls a program in Main Application A

Sometimes a Call Public can help, but even with that you can run into problems.

This is the way to solve these problems:

Main Application A - Main Program:
- create event : ExposedEvent1, None, None, give it a Public Name, Set Expose
- create Handler ExposedEvent1, Subtree, define it's parameters+operations

Component B in your program:
- Raise Event : Public Event, Create expression 'Exposed Event', define Arguments (if needed).



See also for version 10: ExposedEvents10


Regards

Frank Van Herreweghe
Frank.van.herreweghe@telenet.be

Back to: TuTorials

Category
CategoryHowTo

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki trunk
Page was generated in 0.0530 seconds