toArray: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
Line 26: Line 26:
}}
}}


<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}

Revision as of 03:30, 18 January 2021

Hover & click on the images for description

Description

Description:
Converts the supplied String into an Array of Numbers.
The numbers in the created array are the decimal Unicode representations of characters.
Groups:
StringsArrays

Syntax

Syntax:
toArray string
Parameters:
string: String
Return Value:
Array

Examples

Example 1:
hint format["%1",toArray("AaŒ")] returns "[65,97,338]"

Additional Information

See also:
setresizereverseselectinfindtoStringforEachcountdeleteAtdeleteRangeappendsortparamparamsarrayIntersectsplitStringjoinStringtoLowertoUppertoFixedendltoLowerANSItoUpperANSIUnicode Character Table

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