PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode
  • Reminder: The buttons that must be used 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 code of CANCEL button.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the 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
// Code of [CANCEL] button
Abandon()
Syntax
Abandon()
Remarks

Operating mode

If the window contains a CANCEL button, the button code is run:
  • If the code of CANCEL button closes the window, the window is closed.
  • If the code of CANCEL button does not close the window, the window is not closed.
If the window contains no CANCEL button, the window is closed. No return value is returned.
If Abandon is called from a CANCEL button, the window is closed (even if the button code does not use Close). If a value was returned (by Close for example) in the click code of button, this value is not returned.
The call to Abandon is equivalent to [ALT] + [F4].
Note: if the window includes several ABANDON buttons, the operating mode is undefined.

Reminder: The buttons that must be used in a window

  • If your window contains no edit controls, all the buttons can be NORMAL buttons.
  • If your window contains at least one edit control, the following types of buttons must be used:
    • a VALIDATION button,
    • an ABANDON button,
    • a HELP button (if the controls have associated help windows),
    • any other INTERRUPTION button.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment