MESSAGE: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
Line 12: | Line 12: | ||
===Example=== | ===Example=== | ||
:MESSAGE "draw a contour?" | :MESSAGE "draw a contour?" | ||
:MESSAGE "OK to create solid, Cancel to exit macro", "Create Solid", 1 | |||
MESSAGE "OK to create solid, Cancel to exit macro","Create Solid", 1 | |||
<br> | <br> | ||
:inum = 35 | :inum = 35 |
Latest revision as of 15:49, 5 April 2024
Command
- MESSAGE <text> [<caption>] [<1/0>]
- Display a message box dialog.
Parameters
- <text>
- A text string, in double quotes, for example "my text" or a string variable, for example a$
- [<caption>]
- Message Box title text. Either use text in double quotes, or a string variable.
Note - this text is required if using the OK and CANCEL option
- [<1/0>]
- 0 for OK button only
- 1 for OK and Cancel buttons
Example
- MESSAGE "draw a contour?"
- MESSAGE "OK to create solid, Cancel to exit macro", "Create Solid", 1
- inum = 35
- MESSAGE "The variable inum = %inum"
- For an example macro see Explode_Shape