Function YNDialog displays a dialog box which requests the user to select a Yes or No value. If the user selects the Yes button in the dialog box, the value returned by YNDialog is TRUE; if the user selects No, the function returns FALSE.
FUNCTION YNDialog(s : STRING): BOOLEAN;def vs.YNDialog(s):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| s | STRING | Dialog user prompt string. |
YNDialog uses the exclamation icon, when really it should use the question icon.
==== VectorScript ====
PROCEDURE Example;
VAR
result :BOOLEAN;
BEGIN
result := YNDialog( 'Continue?' );
END;
RUN(Example);==== Python ====
result = vs.YNDialog('User prompt string')Availability: from All Versions
- Dialogs - Predefined