parseText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|PARSETEXT]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |PARSETEXT]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|PARSETEXT]]


| arma |= Game name


<h2 style="color:#000066">''' parseText ''text'''''</h2>
|2.01|= Game version
____________________________________________________________________________________________


| Creates a structured text by parsing the given XML description. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''parseText''' text |= Syntax


'''text:''' [[String]]
|p1= text: [[String]] |= Parameter 1


'''Type of returned value:'''
| [[Structured Text]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>txt = parseText "First line<img image=data\isniper.paa/>&ltbr/>Second line"</pre> |= Example 1
____________________________________________________________________________________________


[[Structured Text]]
|  |= See also


'''Compatibility:'''
}}


Version 2.01 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Creates a structured text by parsing the given XML description.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|PARSETEXT]]
 
[[Category:Scripting Commands OFP Elite |PARSETEXT]]
'''Example:'''
[[Category:Scripting Commands ArmA|PARSETEXT]]
 
txt = '''parseText''' "First line&lt;img image=data\isniper.paa/&gt;&ltbr/&gt;Second line"

Revision as of 23:58, 1 August 2006

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

Description

Description:
Creates a structured text by parsing the given XML description.
Groups:
Uncategorised

Syntax

Syntax:
parseText text
Parameters:
text: String
Return Value:
Structured Text

Examples

Example 1:
txt = parseText "First line<img image=data\isniper.paa/>&ltbr/>Second line"

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