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

Syntax

AscW("char")

Parameters

charAny valid ASCII character.

Return Value

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

Example

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

Related Functions

Asc Chr ChrW

Personal tools