forceUnicode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |arma3dev |2.01" to " |arma3 |2.02")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma3
|game1= arma3


|2.02
|version1= 2.02


|gr1= Strings
|gr1= Strings


| Switches the mode of operation of the following commands to unicode: [[copyToClipboard]], [[copyFromClipboard]], [[select]], [[count]], [[in]], [[find]], [[splitString]], [[trim]] and [[reverse]].
|descr= Switches the mode of operation of the following commands to unicode:
<div style="columns: 5">
* [[copyFromClipboard]]
* [[copyToClipboard]]
* [[count]]
* [[find]]
* [[getTextWidth]]
* [[in]]
* [[insert]]
* [[reverse]]
* [[select]]
* [[splitString]]
</div>


| [[forceUnicode]] mode
|s1= [[forceUnicode]] mode


|p1= mode: [[Number]] - Mode of operation, can be: <br>
|p1= mode: [[Number]] - Mode of operation, can be: <br>
Line 16: Line 28:
* &nbsp;1 - on until next compatible command
* &nbsp;1 - on until next compatible command


| [[Anything]]
|r1= [[Anything]]


|x1= <code>[[copyToClipboard]] "д"; {{cc|Copies "д" to clipboard}}
|x1= <code>[[copyToClipboard]] "д"; {{cc|Copies "д" to clipboard}}
[[forceUnicode]] 1; [[copyToClipboard]] "д"; {{cc|Copies "д" to clipboard}}</code>


|seealso= [[copyToClipboard]], [[copyFromClipboard]], [[select]], [[count]], [[in]], [[find]], [[splitString]] [[reverse]]
[[forceUnicode]] 1;
[[copyToClipboard]] "д"; {{cc|Copies "д" to clipboard}}</code>
 
|seealso= [[copyToClipboard]], [[copyFromClipboard]], [[select]], [[count]], [[in]], [[insert]], [[find]], [[splitString]] [[reverse]]
}}
}}

Revision as of 14:47, 25 February 2021

Hover & click on the images for description

Description

Description:
Switches the mode of operation of the following commands to unicode:
Groups:
Strings

Syntax

Syntax:
forceUnicode mode
Parameters:
mode: Number - Mode of operation, can be:
  • -1 - off
  •  0 - on until end of script
  •  1 - on until next compatible command
Return Value:
Anything

Examples

Example 1:
copyToClipboard "д"; // Copies "д" to clipboard forceUnicode 1; copyToClipboard "д"; // Copies "д" to clipboard

Additional Information

See also:
copyToClipboardcopyFromClipboardselectcountininsertfindsplitString reverse

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