formatText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|FORMATTEXT]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |FORMATTEXT]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|FORMATTEXT]]


| arma |= Game name


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


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


'''Operand types:'''
| '''formatText''' [format, arg1, arg2, ...] |= Syntax


'''[format, arg1, arg2, ...]''': [[Array]]
|p1= [format, arg1, arg2, ...] [[Array]] |= Parameter 1


'''Type of returned value:'''
| [[Structured Text]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>txt = formatText' ["Image: %1", [[image]] "data\isniper.paa"]</pre> |= Example 1
____________________________________________________________________________________________


[[Structured Text]]
|  |= See also


'''Compatibility:'''
}}


Version 2.01 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">


'''Description:'''
<!-- Note Section BEGIN -->


Creates a structured text by replacing %1, %2, etc. in format with plain or structured texts given as arguments.
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
[[Category:Scripting Commands|FORMATTEXT]]
 
[[Category:Scripting Commands OFP Elite |FORMATTEXT]]
txt = '''formatText'''' ["Image: %1", [[image]] "data\isniper.paa"]
[[Category:Scripting Commands ArmA|FORMATTEXT]]

Revision as of 00:16, 2 August 2006

-wrong parameter ("Arma") defined!-2.01
Hover & click on the images for description

Description

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

Syntax

Syntax:
formatText [format, arg1, arg2, ...]
Parameters:
[format, arg1, arg2, ...] Array
Return Value:
Structured Text

Examples

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

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section