Difference between revisions of "Display"

From Wiki
Jump to: navigation, search
m (Example)
(Applying templates (header, body, footer))
Line 1: Line 1:
__NOTOC__
+
{{command header|Miscellaneous}}
== display ==
+
'''Miscellaneous'''
+
=== Synopsis ===
+
[[display]] {[ok] | [okcancel] | [yesno] | [yesnocancel]} {message}
+
  
 +
{{body|display {[ok] <nowiki> | </nowiki> [okcancel] <nowiki> | </nowiki> [yesno] <nowiki> | </nowiki> [yesnocancel]} {message}|The [[display]] command displays a standard Windows messagebox with a set of buttons of your choice.}}
  
=== Description ===
+
 
[[display]] The display command displays a standard Windows messagebox with a set of buttons of your choice.
+
==Example==
==== Example ====
+
 
<pre>
 
<pre>
 
display yesno You have run out of ingots. Do you want to end the script?
 
display yesno You have run out of ingots. Do you want to end the script?
Line 15: Line 11:
 
...
 
...
 
</pre>
 
</pre>
 
  
 
{{Note|Use $ to create a newline.}}
 
{{Note|Use $ to create a newline.}}
  
  
Example:
+
==Example==
display ok Test $1$2$3
+
<pre>display ok Test $1$2$3</pre>
 
creates:
 
creates:
 
<pre>
 
<pre>
Line 29: Line 24:
 
3
 
3
 
[ ok ]
 
[ ok ]
</pre>''
+
</pre>
 +
 
  
==== See Also ====
+
{{footer}}
{|
+
| [[var_dispRes|&#0035;dispRes]]
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px |
+
[[Documentation#Miscellaneous |Miscellaneous ]]
+
|}
+

Revision as of 05:04, 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.


Example

display ok Test $1$2$3

creates:

Test
1
2
3
[ ok ]


See also

Main Page Documentation