ON CLOSE OF THIS-PROCEDURE DO:
APPLY "CLOSE" TO WINDOW-1.END.To define a trigger for a procedure, specify any ABL event in an ON statement for a procedure handle. This capability allows you to encapsulate functionality in a procedure. To access that functionality, simply use the APPLY statement to apply the appropriate event to the handle of the procedure. For more information, see the APPLY statement reference entry.
ON CHOOSE OF button1 DO:APPLY "ENTRY" TO my-browse IN FRAME a./* Code to focus a particular row in the browse. */APPLY "ENTRY" TO column3 IN BROWSE my-browse.END.Note that for many low‑level events, such as mouse button and printable character events in fill‑in fields and editors, the AVM does provide the default handling. Triggers on these events have no effect on the default event behavior unless they return NO-APPLY. The same is true of keyboard events that generate high‑level functions, such as TAB and RETURN.
ON event ANYWHERE DO: END.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |