toArray: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (template:command argument fix)
Line 10: Line 10:
The numbers in the created array are the decimal [http://en.wikipedia.org/wiki/Unicode Unicode] representations of characters.
The numbers in the created array are the decimal [http://en.wikipedia.org/wiki/Unicode Unicode] representations of characters.


|= Description
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''toArray''' string |= Syntax
| '''toArray''' string |SYNTAX=


|p1= string: [[String]] |= Parameter 1
|p1= string: [[String]] |PARAMETER1=


| [[Array]] |= Return value
| [[Array]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[hint]] format["%1",toArray("AaŒ")]</code> returns "[65,97,338]"|= Example 1
|x1= <code>[[hint]] format["%1",toArray("AaŒ")]</code> returns "[65,97,338]"|EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[set]], [[resize]], [[reverse]], [[select]], [[in]], [[find]], [[toString]], [[forEach]], [[count]], [[deleteAt]], [[deleteRange]], [[append]], [[sort]], [[param]], [[params]], [[arrayIntersect]], [[splitString]], [[joinString]], [[toLower]], [[toUpper]], [[toFixed]], [[endl]], [http://www.utf8-chartable.de/ Unicode Character Table] |= See also
| [[set]], [[resize]], [[reverse]], [[select]], [[in]], [[find]], [[toString]], [[forEach]], [[count]], [[deleteAt]], [[deleteRange]], [[append]], [[sort]], [[param]], [[params]], [[arrayIntersect]], [[splitString]], [[joinString]], [[toLower]], [[toUpper]], [[toFixed]], [[endl]], [http://www.utf8-chartable.de/ Unicode Character Table] |SEEALSO=


}}
}}

Revision as of 14:50, 7 April 2019

-wrong parameter ("Arma") defined!-1.09
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:
Uncategorised

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

Notes

Bottom Section