formatText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (fixed example)
Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>txt = formatText' ["Image: %1", [[image]] "data\isniper.paa"]</pre> |= Example 1
|x1= txt <nowiki>=</nowiki> '''formatText''' ["Image: %1", [[image]] "data\isniper.paa"] |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 04:40, 3 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