ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Managing external languages / Object functions
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
Confirm (External language)
In french: Confirmer
Displays a dialog box that includes a logo, a message, the "Yes", "No" and "Cancel" buttons, and returns the button validated by the user.
Example
// In C
CALLWD("Confirm, Save the information entered");
if WDInt==1 Save();
// In Pascal
CALLWD('Confirm, Save the information entered');
if WdInt=1 THEN Save();
// In VB
call CALLWD("Confirm, Save the information entered")
if WdInt=1 THEN Call Save
EndIf
Syntax
Confirm(<Message>)
<Message>: Character string
Message to display (up to 200 characters).
Remarks
  • WdString contains the answer of the user:
    • if the answer is "Yes", WdString contains "O" and WdInt contains 1.
    • if the answer is "No", WdString contains "N" and WdInt contains 0.
    • if the answer is "Cancel", WdString contains "A" and WdInt contains 2.
  • To display the message on several lines, use the following syntax:
    • Example in C:
      CALLWD("Confirm,  \n ");
    • Example in Pascal:
      CALLWD('Confirm, '+Chr(10)+' ');
    • Example in VB:
      call CALLWD("Confirm, "+CHR(10)+"")
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help