formatText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:




 
<h2 style="color:#000066">''' formatText ''[format, arg1, arg2, ...]'''''</h2>
<h2 style="color:#000066">''''' formatText ''''' ''[format, arg1, arg2, ...]''</h2>




Line 22: Line 21:
'''Description:'''
'''Description:'''


Creates a structured text by replacing %1, %2, etc. in format by plain or structured texts given as arguments.
Creates a structured text by replacing %1, %2, etc. in format with plain or structured texts given as arguments.
 


'''Example:'''
'''Example:'''


txt = '''formatText'''' ["Image: %1", [[image]] "data\isniper.paa"]
txt = '''formatText'''' ["Image: %1", [[image]] "data\isniper.paa"]

Revision as of 23:29, 3 July 2006


formatText [format, arg1, arg2, ...]


Operand types:

[format, arg1, arg2, ...]: Array

Type of returned value:

Structured Text

Compatibility:

Version 2.01 required.

Description:

Creates a structured text by replacing %1, %2, etc. in format with plain or structured texts given as arguments.


Example:

txt = formatText' ["Image: %1", image "data\isniper.paa"]