formatText: Difference between revisions
Jump to navigation
Jump to search
Fred Gandt (talk | contribs) m (Added <code> tags to example) |
Killzone Kid (talk | contribs) (format, see also) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''formatText''' [format, arg1, arg2, ...] |= Syntax | ||
|p1= [format, arg1, arg2, ...]: [[Array]] | |p1= [format, arg1, arg2, ...]: [[Array]] | ||
|p2= format: [[String]] | |p2= format: [[String]] | ||
|p3= | |p3= args: [[Anything]] | ||
| [[Structured Text]] |= Return value | | [[Structured Text]] |= Return value | ||
Line 22: | Line 22: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[format]], [[composeText]], [[text]], [[parseText]] |= See also | ||
}} | }} |
Revision as of 19:52, 30 June 2015
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
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Command Group: Interaction
- Command Group: Variables
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters