ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / Reserved keywords
  • Handling the control that opened the popup window
  • Using MyPopupControl in a procedure
  • WLanguage functions and current window
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
MyPopupControl (Reserved word)
In french: MonChampPopup
MyPopupControl is used to handle the control that opened a popup window.
At runtime, MyPopupControl is replaced with:
In any case, MyPopupControl is replaced at runtime by the corresponding control (and not by the name of the control). Then, MyPopupControl can be used like any control.
Advantage: MyPopupControl is used to make a local code (control, button, ...) or a global code (global procedure, class, ...) independent of the current popup window.
Example
IF MyPopupControl..Type = typButton THEN
MyPopupControl..Caption = "Selection in progress"
END
Syntax
MyPopupControl
Remarks

Handling the control that opened the popup window

  • MyPopupControl is always replaced with the control that opened the popup window. Therefore, it can be handled from the code of the popup window. For example:
    IF MyPopupControl..Type = typButton THEN
    MyPopupControl..Caption = "Selection in progress"
    END
     
    // Pass as parameter:
    CallProcedure(MyPopupControl)
  • MyPopupControl can only be used in the processes that handle the current popup window (in the processes associated with a control for example). MyPopupControl cannot be used in a report or in a window that is not a popup report or a popup window.

Using MyPopupControl in a procedure

  • The MyPopupControl keyword can be used in a local or global procedure only if the procedure is called in a process associated with a control of the popup window or in a process of the popup window. In this case, MyPopupControl refers to the control that opened the popup window.
  • MyPopupControl is used to make a procedure "generic": the name of the control is not spelled out. This procedure can be called by several controls.

WLanguage functions and current window

To specify the control that opened the current popup window in the WLanguage functions accepting a control name as parameter, use the MyPopupControl keyword.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help