toString: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
No edit summary |
||
Line 41: | Line 41: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on February 10, 2015 - 21:05 (UTC)</dd> | |||
<dt class="note">[[User:DreadedEntity|DreadedEntity]]</dt> | |||
<dd class="note"> | |||
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: | |||
<code>_tab = [[toString]] [9]; | |||
[[for]] "_i" [[from]] 0 [[to]] 3 [[do]] | |||
{ | |||
_tab = _tab + ([[toString]] [9]); | |||
}; | |||
[[copyToClipboard]] [[format]] ["x%1x",tab];</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 22:05, 10 February 2015
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. - Groups:
- Uncategorised
Syntax
Examples
- Example 1:
hint toString [65,97,338]
returns "AaŒ"
Additional Information
- See also:
- setresizereverseselectinfindtoArrayforEachcountdeleteAtdeleteRange, Unicode 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
- 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];