MESSAGE: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
{{Command|syntax=MESSAGE <text> <nowiki>[<caption>] [<</nowiki>1/0>] | {{Command|syntax=MESSAGE <text> <nowiki>[<caption>] [<</nowiki>1/0>] | ||
|description=: | |description=:Display a message box dialog. | ||
|param1=<text>|param1_desc={{text}} | |param1=<text>|param1_desc={{text}} | ||
|param2<nowiki> | |param2=<nowiki>[<caption>]</nowiki>|param2_desc={{caption}} | ||
|param3=[<1/0>]|param3_desc=0 for OK button only | |param3=[<1/0>]|param3_desc=0 for OK button only | ||
:1 for OK and Cancel buttons | :1 for OK and Cancel buttons | ||
Line 11: | Line 11: | ||
===Example=== | ===Example=== | ||
:MESSAGE "draw a contour?" 1 | :MESSAGE "draw a contour?" | ||
:MESSAGE "OK to create solid, Cancel to exit macro", "Create Solid", 1 | |||
<br> | |||
:inum = 35 | |||
:MESSAGE "The variable inum = %inum" | |||
<br> | |||
:For an example macro see [[Explode_Shape]] | :For an example macro see [[Explode_Shape]] | ||
[[Category:Miscellaneous]] | [[Category:Miscellaneous]] |
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