questdlg
Creates a question dialog box.
Syntax
buttonname = questdlg(question)
buttonname = questdlg(question, title)
buttonname = questdlg(question, title, default)
buttonname = questdlg(question, title, text1, default)
buttonname = questdlg(question, title, text1, text2, default)
buttonname = questdlg(question, title, text1, text2, text3, default)
Input argument
question - a string or a cell of string: the question.
title - a string: the title of the dialog box.
text1 - a string: text of button 1.
text2 - a string: text of button 2.
text3 - a string: text of button 3.
default - a string: text of selected button by default.
Output argument
buttonname - a string: text of the clicked button or ''.
Description
questdlg displays a string using a question dialog box and return the caption of the activated button.
The dialog has three default buttons: 'Yes', 'No', 'Cancel' with 'Yes' as default.
Examples
See also
warndlg, errordlg, helpdlg, msgbox.
History
1.0.0
initial version
Author
Allan CORNET
Last updated