composeText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Further wikilinking. Apparently lineBreak is NOT a variable name. This is why code should be <code> and wikilinked :-))
(syntax, added see also)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Structured Text]] <nowiki>=</nowiki> '''composeText''' [text1, text2, ...] |= Syntax
| '''composeText''' [text1, text2, ...] |= Syntax


|p1= [text1, text2, ...]: [[Array]] |= Parameter 1
|p1= [text1, text2, ...]: [[Array]] of [[String]]s and/or [[Structured Text]]s |= Parameter 1


| [[Structured Text]] |= Return value
| [[Structured Text]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_txt = [[composeText]] ["First line", image "data\isniper.paa", [[lineBreak]], "Second line"];</code> |= Example 1
|x1= <code>_txt = [[composeText]] ["First line", [[image]] "data\isniper.paa", [[lineBreak]], "Second line"];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[image]], [[lineBreak]], [[parseText]], [[text]] |= See also


}}
}}

Revision as of 20:40, 15 March 2014

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

Description

Description:
Creates a structured text by joining the given structured or plain texts.
Groups:
Uncategorised

Syntax

Syntax:
composeText [text1, text2, ...]
Parameters:
[text1, text2, ...]: Array of Strings and/or Structured Texts
Return Value:
Structured Text

Examples

Example 1:
_txt = composeText ["First line", image "data\isniper.paa", lineBreak, "Second line"];

Additional Information

See also:
imagelineBreakparseTexttext

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