MESSAGE_CONFIRMATION_YES_NO()

MESSAGE_CONFIRMATION_YES_NO(T)

DISPLAYS A WINDOW WITH A TEXT, AN INTERROGATION MARK AND TWO BUTTONS

  • Type: Function
  • Parameter: 1
  • Group: Messages

ACTION

The function displays in a window the text T (one line), a question mark and two buttons "Yes" and "No".

The program is frozen and resumes when user closes The window.

The function returns:

0 when user closes the window by clicking on the closing icon (red cross),

1 when user closes the window by clicking on the button YES,

2 when user closes the window by clicking on the button NO.

SYNTAX: Result=MESSAGE_CONFIRMATION_YES_NO(T)

  • T = text (string) to be displayed on the message window.

USE

  • The function MESSAGE_CONFIRMATION_YES_NO() is used to display a confirmation message to be answered by yes or not.

ERROR

  • If the text T is not a correct string expression.

EXAMPLE

rem display a confirmation message

if message_confirmation_yes_no("Are you ready ?")=1 then - - -

SEE ALSO

MESSAGE

MESSAGE_CONFIRMATION_OK()

MESSAGE_ERROR_OK()

MESSAGE_ERROR_YES_NO()

MESSAGE_INFORMATION_OK()

MESSAGE_INFORMATION_YES_NO()

MESSAGE_INPUT()

MESSAGE_INPUT$()

MESSAGE_TEXT$

MESSAGE_WARNING_OK()

MESSAGE_WARNING_YES_NO()