Result 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.

Result constant - Message box

(Macro editor)

Result constant - Message box

(Script editor)

Integer Value

Description

MsgOk

nlMsgOk

1

OK button was pressed.

MsgCancel

nlMsgCancel

2

Cancel button was pressed (or ESC).

MsgYes

nlMsgYes

6

Yes button was pressed.

MsgNo

nlMsgNo

7

No button was pressed.

NOTE:

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

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

Result constant - Message box

(Macro editor)

Result constant - Message box

(Script editor)

Integer Value

Description

MsgAbort

nlMsgAbort

3

Abort button was pressed. Once obsolete, messages boxes will no longer return this value as the related Abort button will not exist. Obsolete

MsgRetry

nlMsgRetry

4

Retry button was pressed. Once obsolete, messages boxes will no longer return this value as the related Retry button will not exist. Obsolete

MsgIgnore

nlMsgIgnore

5

Ignore button was pressed. Once obsolete, messages boxes will no longer return this value as the related Ignore button will not exist. Obsolete

See Also

MsgBox action | MsgBox method


© 2004-2021 looksoftware. All rights reserved.