toString

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.09
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.09

Description

Description:
Converts the supplied Array of Numbers into a String.
The numbers in the array to be converted are the decimal Unicode representations of characters.

Syntax

Syntax:
toString array
Parameters:
array: Array
Return Value:
String

Examples

Example 1:
hint toString [65,97,338] returns "AaŒ"

Additional Information

Multiplayer:
-
See also:
setresizereverseselectinfindtoArrayforEachcountdeleteAtdeleteRangeappendsortUnicode Character Table

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on February 10, 2015 - 21:05 (UTC)
DreadedEntity
Tabs and new lines can be created with toString [9] and toString [10], respectively. Alternatively, a new line can also be created with toString [92,110] ("\n"). If you save these strings into a variable, they can be manipulated like any other string. For example, the following code will work just fine and return the expected output: _tab = toString [9]; for "_i" from 0 to 3 do { _tab = _tab + (toString [9]); }; copyToClipboard format ["x%1x",tab];