Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Characteristics of dialog box
  • Line break in the dialog box
  • Miscellaneous
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Displays a message in a standard dialog box that proposes "Yes" and "No" and returns the user's choice.
Yes / No dialog
  • This is a blocking dialog box. To continue running the application, the user must validate one of the buttons.
Reports and Queries
// Exit choice
IF YesNo("Do you want to exit from the program?") = Yes THEN
Reports and Queries

Displaying a Yes/No dialog box Hide the details

<Result> = YesNo([<Selected button>, ] <Text> [, <Line 2> [... [, <Line N>]]])
<Result>: Integer constant
Identifies the button selected by the user:
Non (or 0)The user has selected the [ NON] button.
or he has closed the dialog box via the 'X' icon.
Oui (or 1)The user has selected the [ YES] button
<Selected button>: Optional integer constant
Button selected by default in the dialog box:
Non (or 0)The "No" button is selected by Default.
Oui (or 1)
(Default value)
The "Yes" button is selected by Default.
<Text>: Character string
Text to display.
<Line 2>: Optional character strings
Text displayed on the following lines.
<Line N>: Optional character strings
Text displayed on the following lines.

Characteristics of dialog box

  • The title of the dialog box corresponds to the title of the current window (or page).
  • To modify or define the title of dialog box, use NextTitle.
  • The message is aligned to left.
  • The captions of buttons depend on the runtime language of Windows.
  • The maximum number of characters cannot exceed 4096. If a larger string is passed in parameter, it will be truncated.
  • The icon displayed (exclamation mark) cannot be modified.

Line break in the dialog box

The CR string (Carriage Return) can be used to force a break to the next line. For example:
YesNo("The XXX form was modified." + CR + ...
"Do you want to save it before exiting?")
is equivalent to:
YesNo("The XXX form was modified.", ...
"Do you want to save it before exiting?")
You also have the ability to use the syntax of multiline strings. For example:
The XXX form has been modified.
Do you want to save changes before closing?
Reports and Queries


  • Timers (TimerSys) are not stopped when this function is called.
  • The text of the buttons is displayed in the system language.
Business / UI classification : UI Code
Component : wd260obj.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment