Difference between revisions of "Message"

Jump to navigation Jump to search
209 bytes added ,  03:29, 10 June 2006
Use same template for Message and Messagebox
imported>Millinghordesman
m
imported>JOG
(Use same template for Message and Messagebox)
Line 1: Line 1:
== Description ==
'''Syntax:'''
'''Syntax:'''
  Message "Message text", [var1], [var2], DisplaySeconds  
  Message "Message text", [var1], [var2], DisplaySeconds  
'''Example:'''
'''Example:'''
  Message "This is a Message"  
  Message "This is a Message"  
Line 11: Line 14:
Up to 9 variable names can also be passed into the Message. These are displayed in the order they are used as parameters. The message must specify how the variable is to be displayed.  
Up to 9 variable names can also be passed into the Message. These are displayed in the order they are used as parameters. The message must specify how the variable is to be displayed.  


Formatting notation:


%.2f


This means format the variable with 2 decimal places.  
== Displaying Variables ==
{{MessageFormating}}
 
 
 
===Examples===
 
'''Message "Var1:% 5.2f / Var2:% 5.2f"'''
"Var1:  123.45 / Var2:  -123.45"
 
'''Message "Var1:%05.2f / Var2:%05.2f"'''
"Var1: 00123.45 / Var2:-00123.45"
 
'''Message "Var1:%+-5.0f / Var2:%+-5.0f"'''
"Var1:+123  / Var2:-123  "


%.0f
'''Message "Var1:% .3e / Var2:% .3e'''
"Var1: 1.234E+2 / Var2:-1.234E+2"


This will format the variable with 0 decimal places, so is the normal choice for integers.


==See Also==  
==See Also==  
Anonymous user

Navigation menu