Navigation

Operators and Keywords

Function List:

C++ API

: h = warndlg ()
: h = warndlg (msg)
: h = warndlg (msg, title)
: h = warndlg (msg, title, createmode)

Display a warning dialog box with warning message msg and caption title.

The default warning message is "This is the default warning string." and the default caption is "Warning Dialog".

The warning message may have multiple lines separated by newline characters ("\n"), or it may be a cellstr array with one element for each line.

The return value h is always 1.

Compatibility Note: The optional argument createmode is accepted for MATLAB compatibility, but is not implemented. See msgbox for details.

Examples:

warndlg ("Some warning text for the user.");
warndlg ("Some warning text\nwith two lines.");
warndlg ({"Some warning text", "with two lines."});
warndlg ("Some warning text for the user.", "Fancy caption");

See also: errordlg, helpdlg, inputdlg, listdlg, msgbox, questdlg.

Package: octave