Dialog.Message

number Dialog.Message ( 

string Title,

string Text,

number Type = MB_OK,

number Icon = MB_ICONINFORMATION,

number DefaultButton = MB_DEFBUTTON1 )

Description

Presents a dialog to the user with an informative message on it.

Parameters

Title

(string) The text that will appear in the dialog title bar.

Text

(string) The text that will appear on the dialog.

Type

(number) The type of dialog to display:

CONSTANT

VALUE

DESCRIPTION

MB_OK

0

OK (Default)

MB_OKCANCEL

1

OK | Cancel

MB_ABORTRETRYIGNORE

2

Abort | Retry | Ignore

MB_YESNOCANCEL

3

Yes | No | Cancel

MB_YESNO

4

Yes | No

MB_RETRYCANCEL

5

Retry | Cancel

Icon

(number) The icon to display on the dialog:

CONSTANT

VALUE

DESCRIPTION

MB_ICONNONE

0

None.

MB_ICONSTOP

16

Stop.

MB_ICONQUESTION

32

Question.

MB_ICONEXCLAMATION

48

Exclamation.

MB_ICONINFORMATION

64

Information. (Default)

DefaultButton

(number) The button that will get the focus by default:

CONSTANT

VALUE

DESCRIPTION

MB_DEFBUTTON1

0

The first button from the left. (Default)

MB_DEFBUTTON2

256

The second button from the left.

MB_DEFBUTTON3

512

The third button from the left.

Returns

(number) The numeric constant for the button that was pressed:

CONSTANT

VALUE

DESCRIPTION

IDOK

1

The OK button.

IDCANCEL

2

The Cancel button.

IDABORT

3

The Abort button.

IDRETRY

4

The Retry button.

IDIGNORE

5

The Ignore button.

IDYES

6

The Yes button.

IDNO

7

The No button.

If an error occurs, IDCANCEL (value 2) will be returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

Availability

Standard

Pro

See also:  Related Actions