PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Operating mode
  • Reminder: The Button controls to use in a window
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
Abandon (Function)
In french: Abandonne
Closes the current window by running the "Click" event of the CANCEL Button control.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Java This function is now available for the Java applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Java This function is now available for the Java applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Java This function is now available for the Java applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Click BTN_CANCEL
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 of the CANCEL Button control type 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.
Remark: if the window has several CANCEL Button controls, the behavior is not defined.

Reminder: The Button controls to use 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 VALIDATE Button control,
    • a CANCEL Button control,
    • a HELP Button control (if the controls have associated help windows),
    • any other INTERRUPT Button controls
Component : wd250obj.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment