Button Constants - Message Box

The following constants can be used anywhere in macros or scripts in place of the actual values.

If you are retrieving the value of a property or parameter, scripts or macros will return the integer value, whereas Inspector will display the constant equivalent.

KEEP IN MIND:

When using constants in the script editor, each constant must be prefaced by nl.

Button constant - Message box

(Macros)

Button constant - Message box

(Scripts)

Integer Value

Description

MsgOkOnly

nlMsgOkOnly

0

Display OK button only.

MsgOkCancel

nlMsgOkCancel

1

Display OK and Cancel buttons.

MsgYesNoCancel

nlMsgYesNoCancel

3

Display Yes, No and Cancel buttons.

MsgYesNo

nlMsgYesNo

4

Display Yes and No buttons.

NOTE:

Some of the Message box button styles have been made obsolete in 11.0. Refer to the obsolete constants table below.

The following message box button styles are obsolete and are no longer available:

Button constant - Message box

(Macros)

Button constant - Message box

(Scripts)

Integer Value

Description

MsgAbortRetryIgnore

nlMsgAbortRetryIgnore

2

Display Abort, Retry and Ignore buttons. Once obsolete, messages boxes using this button style will render with the MsgOkOnly style. Obsolete

MsgRetryCancel

nlMsgRetryCancel

5

Display Retry and Cancel buttons. Once obsolete, messages boxes using this button style will render with the MsgOkOnly style. Obsolete

See Also

MsgBox action | MsgBox method


© 2004-2021 looksoftware. All rights reserved.