ChrW

From AutoIt Wiki

Jump to: navigation, search

Returns a character corresponding to a unicode code. Adapted from AutoIt docs.

Contents

[edit] Syntax

$var = ChrW(UNICODEcode)

[edit] Parameters

UNICODEcodeA unicode code in the range 0 to 65535 (e.g. 65 returns "A").

[edit] Return Value

Success: Returns a string containing the representation of the given code. Failure: Returns a blank string and sets @error to 1 if the UNICODEcode is greater than 65535.

[edit] Example

$text = ""
For $i = 256 to 512
    $text = $text & ChrW($i)
Next
MsgBox(0, "Unicode chars 256 to 512", $text)

[edit] Related Functions

Asc AscW Chr String

Personal tools