AscW

From AutoIt Wiki

Jump to: navigation, search

Similar to the Asc's functionality, AscW returns the unicode of a character. Adapted from AutoIt docs.

Contents

[edit] Syntax

AscW("char")

[edit] Parameters

charAny valid ASCII character.

[edit] Return Value

Returns the unicode for char. Strings return the value of the first character.

[edit] Example

$code = AscW("A")
MsgBox(0,"Unicode code for A is ", $code)

[edit] Related Functions

Asc Chr ChrW

Personal tools