ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • Operating mode
  • Reminder: Button control fields to be used in a window
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Closes the current window by running the "Click" event of the CANCEL Button control.
Example
// Clic sur Bouton BTN_ANNULER
Abandon()
Syntax
Abandon()
Remarks

Operating mode

If the window contains a CANCEL Button control, the "Click" event of the Button control is run. Caution:
  • If the "Click" event of the CANCEL Button control type closes the window, the window is closed.
  • If the "Click" event in the ABANDON Button control does not close the window, the window is not closed.
If the window contains no CANCEL Button control, the window is closed. No return value is returned.
If Abandon is called from a CANCEL Button control, the window is closed (even if the "Click" event of the Button control does not use Close). If a value was returned (by Close for example) in the "Click" event of the Button control, this value is not returned.
The call to Abandon is equivalent to Alt + F4.
Note If the window has more than one ABANDON Button control field, operation is indeterminate.

Reminder: Button control fields to be used in a window

  • If your window contains no edit control, all the Button controls can be NORMAL buttons.
  • If your window contains at least one edit control, the following types of Button controls must be used:
    • a VALIDATION Button control,
    • a CANCEL Button control,
    • a HELP Button control (if the controls have associated help windows),
    • any other INTERRUPT Button controls
Component: wd300obj.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/16/2025

Send a report | Local help