TRIGGERS:ON event-list ANYWHEREtrigger-blockPERSISTENT RUN procedureIN handle( input-parameters )END TRIGGERS
event1 , event2The events you can specify depend on the type of the associated widget. See the reference entry for the appropriate widget. For more information on each user interface event that ABL supports, see the “Handle-based Object Events Reference” section.Specifies a persistent trigger; that is, a trigger that remains in effect after the current procedure terminates. A persistent trigger must be a procedure specified by procedure. The trigger procedure can take one or more input parameters; it cannot have any output parameters. The parameters are evaluated when the trigger is defined. They are not re-evaluated each time the trigger executes.If you specify the IN handle option, procedure must be the name of an internal procedure defined in the external procedure specified by handle, where handle is an expression that evaluates to a valid procedure handle. The external procedure must be in scope when you run procedure.
If you specify a trigger when you define a widget then that trigger applies to every instance of that widget. For example, in r-trigp.p, if you enable the nextcust button in more than one frame, each of those buttons inherits the nextcust trigger.
The external procedure specified by handle is in scope if it is the current procedure, a procedure on the call stack, or a persistent procedure.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |