formatText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed example)
m (Reset ArmA ver)
Line 4: Line 4:
| arma |= Game name
| arma |= Game name


|2.01|= Game version
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 12: Line 12:
| '''formatText''' [format, arg1, arg2, ...] |= Syntax
| '''formatText''' [format, arg1, arg2, ...] |= Syntax


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


| [[Structured Text]] |= Return value
| [[Structured Text]] |= Return value

Revision as of 19:38, 4 October 2006

-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
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