Difference between revisions of "Display"

From Wiki
Jump to: navigation, search
m
m
Line 13: Line 13:
  
  
{{Note|Use $ to create a newline.}}
+
{{Note|
 
+
Use $ to create a newline:
 
+
==Example==
+
 
<pre>display ok Test $1$2$3</pre>
 
<pre>display ok Test $1$2$3</pre>
 
creates:
 
creates:
Line 26: Line 24:
 
[ ok ]
 
[ ok ]
 
</pre>
 
</pre>
 +
}}
 +
 +
 +
  
  
 
{{footer}}
 
{{footer}}

Revision as of 05:06, 26 September 2005


Synopsis

display {[ok] | [okcancel] | [yesno] | [yesnocancel]} {message}

Description

The display command displays a standard Windows messagebox with a set of buttons of your choice.


Example

display yesno You have run out of ingots. Do you want to end the script?
if #dispRes = yes
	halt
...


Note:

Use $ to create a newline:

display ok Test $1$2$3

creates:

Test
1
2
3
[ ok ]



See also

Main Page Documentation