PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV and WINDEV Mobile 27 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Opens a window whose result will be retrieved via a WLanguage procedure ("callback").
Example
// Open asynchronously without passing parameters
OpenAsynchronous(WIN_DateSelect, CloseDateSelect)
INTERNAL PROCEDURE CloseDateSelect(SelectedDate)
EDT_DATE = SelectedDate
END
// Open asynchronously without passing parameters and lambda
OpenAsynchronous(WIN_DateSelect, (SelectedDate) => {EDT_DATE = SelectedDate})
// Open asynchronously with 2 parameters
OpenAsynchronous(WIN_DateSelect, CloseDateSelect, DateSys(), "Select a date")
INTERNAL PROCEDURE CloseDateSelect(SelectedDate)
EDT_DATE = SelectedDate
END
Syntax
OpenAsynchronous(<Window> , <Parameters> , <WLanguage procedure>)
<Window>: Window name
Name of window to open.
<Parameters>: Character string
List of parameters to be passed to the window. This list of parameters has the following format:
(<Parameter 1>, ..., <Parameter N>)

where:
  • <Parameter 1>: First parameter that will be passed to the "Global declarations" event of the window to open. This parameter is passed by value and is considered a variable global to the window.
    This parameter cannot correspond to an array variable (arrays can only be passed by reference).
  • <Parameter N>: Nth parameter that must be passed to the "Global declarations" event of the window to open. This parameter is passed by value and is considered a variable global to the window.
    This parameter cannot correspond to an array variable (arrays can only be passed by reference).
<WLanguage procedure>: Name of procedure or lambda procedure
Name of the WLangage procedure ("callback") called after the window is closed. For more details on this procedure, see Parameters of the procedure used by OpenAsynchronous.
This WLanguage procedure can correspond to:
  • a name of a global procedure,
  • a name of an internal procedure,
  • a lambda procedure.
Remarks
  • OpenAsynchronous opens the window in modal and asynchronous mode:
    • code execution continues without waiting for the window to be closed,
    • the WLanguage procedure will be called when the window is closed.
    • the user cannot click the parent window of the calling window.
  • A window opened with OpenAsynchronous will be automatically closed if the calling window is closed. However, the "Closing a child window" event of the calling window will not be executed.
Business / UI classification: UI Code
Component: wd270obj.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment