formatText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added <code> tags to example)
(format, see also)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Structured Text]] <nowiki>=</nowiki> '''formatText''' [format, arg1, arg2, ...] |= Syntax
| '''formatText''' [format, arg1, arg2, ...] |= Syntax


|p1= [format, arg1, arg2, ...]: [[Array]]
|p1= [format, arg1, arg2, ...]: [[Array]]
|p2= format: [[String]]
|p2= format: [[String]]
|p3= arg1, arg2, ...]
|p3= args: [[Anything]]


| [[Structured Text]] |= Return value
| [[Structured Text]] |= Return value
Line 22: Line 22:
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[format]], [[composeText]], [[text]], [[parseText]] |= See also


}}
}}

Revision as of 20:52, 30 June 2015

-wrong parameter ("Arma") defined!-1.00
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
format: String
args: Anything
Return Value:
Structured Text

Examples

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

Additional Information

See also:
formatcomposeTexttextparseText

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