PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
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 (with quotes)
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 required version
  • Version 14
Comments
Click [Add] to post a comment