GUI.MessageDlg |
Top Previous Next |
Shows a customizable message dialog.
Syntax function GUI.MessageDlg(Msg: string; DlgType: integer; Buttons: integer): integer
Alternative Names
Description Shows a message dialog with a graphical icon, depending on the dialog type, and one or more buttons.
Msg holds a message to be shown to the user.
DlgType is one of the predefined dialog types:
A combination of predefined constants can be used for Button to show one or more buttons:
The Return Value is one of the predefined constants, depending on the button clicked:
See also
Example execute UDSBlock returns (str_value varchar(100)) as begin /* show a dialog and wait for OK click */ GUI.ShowMessage('click this to continue');
dlg_value = GUI.MessageDlg('Warning message! Still want to continue?', __mtWarning, __mbYes + __mbNo); if (dlg_value = __mrYes) then str_value = 'yes'; else str_value = 'no'; suspend;
str_value = 'end of routine'; suspend; end |