MESSAGE: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
Mikeo (talk | contribs)
No edit summary
Line 11: Line 11:


===Example===
===Example===
:MESSAGE "draw a contour?", 1
:MESSAGE "draw a contour?"
<br>
MESSAGE "OK to create solid, Cancel to exit macro","Create Solid", 1
<br>
<br>
:inum = 35
:inum = 35

Revision as of 15:48, 5 April 2024

Up

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