Advanced PowerBuilder

HomePrevious Lesson: Calling Functions
Next Lesson: Displaying Popup Menu on the DataWindow

Triggering or Posting Events

Calling the TriggerEvent() or PostEvent() functions is a convenient way to execute the scripts of other windows or window control events. These functions allow you to write script in one place and execute them any number of times from other objects.

We've already used some of these methods of communication earlier in the session. We can't recommend any single method to be the best, as each have their own merits and can be used in many diverse circumstances. The advice we can give is, try various methods and find the one with which you feel comfortable.
HomePrevious Lesson: Calling Functions
Next Lesson: Displaying Popup Menu on the DataWindow