formatText: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
[[Category:Scripting Commands ArmA|FORMATTEXT]] | [[Category:Scripting Commands ArmA|FORMATTEXT]] | ||
<h2 style="color:#000066">''''' formatText '''''</h2> | <h2 style="color:#000066">''''' formatText ''''' ''[format, arg1, arg2, ...]''</h2> | ||
'''Operand types:''' | '''Operand types:''' | ||
'''[format, arg1, arg2, ...]''': [[Array]] | |||
'''Type of returned value:''' | '''Type of returned value:''' | ||
[[Structured Text]] | |||
'''Compatibility:''' | '''Compatibility:''' | ||
Version 2.01 required. | |||
'''Description:''' | '''Description:''' | ||
Creates a structured text by replacing %1, %2, etc. in format by plain or structured texts given as arguments. | |||
'''Example:''' | '''Example:''' | ||
txt = '''formatText'''' ["Image: %1", [[image]] "data\isniper.paa"] |
Revision as of 01:40, 2 July 2006
formatText [format, arg1, arg2, ...]
Operand types:
[format, arg1, arg2, ...]: Array
Type of returned value:
Compatibility:
Version 2.01 required.
Description:
Creates a structured text by replacing %1, %2, etc. in format by plain or structured texts given as arguments.
Example:
txt = formatText' ["Image: %1", image "data\isniper.paa"]