PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Exiting from the sequence of procedures
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..After replaces or inserts a procedure after the other procedures in:
  • a Procedure variable.
  • WindowsLinuxUniversal Windows 10 App a process associated with a control.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Versions 22 and later
Java This property is now available for the Procedure variables in the Java applications.
New in version 22
Java This property is now available for the Procedure variables in the Java applications.
Java This property is now available for the Procedure variables in the Java applications.
Example
p is PROCEDURE
p = MyProcedure
p..After = MyProcedureCalledAfter
p..Before = MyProcedureCalledBefore

// The order for calling the procedures will be:
// - MyProcedureCalledBefore
// - MyProcedure
// - MyProcedureCalledAfter
p()
WindowsLinuxUniversal Windows 10 App
// Specifies the process to run on a click
BTN_BUTTON1..Process[trtClick] = myProcedure1

// Adds a procedure to run on a click
BTN_BUTTON1..Process[trtClick] += myProcedure2

// Adds a procedure to run after the click process
BTN_BUTTON1..Process[trtClick]..After += myProcedure3
Syntax

Replacing the existing procedures saved with ..After (= operator) Hide the details

<Element>..After = <Procedure>
<Element>: Character string
Element to use:
  • Name of Procedure variable.
  • WindowsLinuxUniversal Windows 10 App Process of a control. The processes of a control can be handled by ..Process.
<Procedure>: Character string (without quotes)
Name of the WLanguage procedure that will replace the existing procedures.

Inserting a procedure after the existing procedures (+= operator) Hide the details

<Element>..After += <Procedure>
<Element>: Character string
Element to use:
  • Name of Procedure variable.
  • WindowsLinuxUniversal Windows 10 App Process of a control. The processes of a control can be handled by ..Process.
<Procedure>: Character string (without quotes)
Name of the WLanguage procedure that must be placed "after".
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 ReturnToCapture.
Example:
// Click on BTN_Button1
BTN_Button2..Process[trtClick]..After += MyProc1
BTN_Button2..Process[trtClick]..After += MyProc2
// Click on BTN_Button2
Trace("Button 2 clicked")
PROCEDURE MyProc1()
Trace(dbgInfo(dbgProcess))
ReturnToCapture(MySelf..Name)
PROCEDURE MyProc2()
Trace(dbgInfo(dbgProcess))
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment