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.
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. |
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:
© 2004-2021 looksoftware. All rights reserved.