ChrW

From AutoIt Wiki

Jump to: navigation, search

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

Contents

Syntax

$var = ChrW(UNICODEcode)

Parameters

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

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.

Example

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

Related Functions

Asc AscW Chr String

Personal tools