Displays a message box with an OK, Cancel, Yes and/or No buttons.
MESSAGE("label", "message", type)
"label" |
- |
Optional string to label the top of the message box. |
||||||||||||||||||||
"message" |
- |
A string for the message within the box. |
||||||||||||||||||||
type |
- |
Optional. An integer, the message box type. Specifies the icon and buttons within the box. Defaults to 3. Valid arguments are:
|
An integer, the message box return value:
For types 1 and 2: |
1=OK, -1=Cancel |
For types 3, 4 and 8: |
1=OK |
For types 5, 6 and 9: |
1=Yes, 0=No |
For type 7: |
1=Yes, 0=No, -1=Cancel |
For type 10: |
1=Yes, 2=Yes to All, 0=No, -1=Cancel |
message("Test Message")
pops up a message box with an "I" sign.
message(sprintf("Max: %g Min:%g", max, min))
pops up a message box that displays the maximum and minimum of the current window.
To make multiple lines, use the STRESCAPE function:
message(strescape(sprintf("Max: %g\nMin: %g", max, min)))
same as above except the maximum and minimum are reported on two lines.
message("Warning", "Value out of Range", 4)
pops up a warning message with a stop sign and a single OK button.
MESSAGE is useful in SPL files and Command files when automating processes.