|
|
|
|
|
- Exiting from the sequence of procedures
Before (Property) In french: Avant
p is procedure p = MyProcedure p.After = MyProcedureCalledAfter p.Before = MyProcedureCalledBefore  // The order for calling the procedures will be: // - MyProcedureCalledBefore // - MyProcedure // - MyProcedureCalledAfter p()
Syntax
Replacing existing procedures with the Before property (= operator) Hide the details
<Element>.Before = <WLanguage procedure>
Inserting a procedure before the existing procedures (+= operator) Hide the details
<Element>.Before += <WLanguage procedure>
Remarks Exiting from the sequence of procedures If several procedures are sequenced, the sequence of procedures can be interrupted from the code of one of the procedures by using SetFocusAndReturnToUserInput. Example:
// Click on BTN_Button1 BTN_Button2.Process[trtClick].Before += MyProc1 BTN_Button2.Process[trtClick].Before += MyProc2
// Click on BTN_Button2 Trace("Button 2 clicked")
PROCÉDURE MyProc1() Trace(dbgInfo(dbgProcess)) SetFocusAndReturnToUserInput(MySelf.Name)
PROCÉDURE MyProc2() Trace(dbgInfo(dbgProcess))
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|