.. highlightlang:: us .. index:: MessageBoxQuestionYesNo .. _messageboxquestionyesno: MessageBoxQuestionYesNo ======================= .. us.tag MessageBoxQuestionYesNo ENGLISH DialogBoxes New363 :ref:`MessageBoxQuestionYesNo` displays a message box. .. function:: ssRet = MessageBoxQuestionYesNo(ssMessage, ...) ssRet = MessageBoxQuestionYesNo(ssDefault, ssMessage, ...) .. us.return **Return Value** *ssRet* is "YES or "NO". .. us.params **Parameters** .. uparam:: ssDefault *ssDefault* is "YES" or "NO". This parameter sets the focus to the Yes or No button. .. uparam:: ssMessage *ssMessage* is a scalar string containing the message text. The text can contain format sequences and newline characters ``"\n"``. See :ref:`printf` for a format description. .. us.example **Example** :: if (MessageBoxQuestionYesNo("NO", "File '%s' exists. Overwrite?", ssFileName) == "YES") { ... } .. seealso:: :ref:`overview-dialogboxes`, :ref:`DialogBox`, :ref:`MessageBoxError`, :ref:`MessageBoxWarning`, :ref:`MessageBoxInfo`, :ref:`MessageBoxQuestionYesNoCancel`, :ref:`printf`, :ref:`MessageBox` :sub:`id-666632`