DIAdem Help

Method: AscW for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: AscW for VBS

Specifies the Unicode character code of the first character of a character string.

vAscW = Object.AscW(string)
ObjectVBS
Object with this method. You do not need to specify this object.
stringVariant
Specifies a character string.
vAscWVariant
Receives the Unicode character code.

The following example displays various character codes:

Call MsgBox(AscB("?"))	' Returns 40
Call MsgBox(AscW("?"))	' Returns 26408
Call MsgBox(Asc("?"))	' Returns 63
Call MsgBox(Asc("?"))	' Returns 63

See Also

Objects Overview

Related Topics

Abs | Asc | AscB | AscW | CBool | CByte | CCur | CDate | CDbl | CInt | CLng | CSng | CStr | ChrB | ChrW | Chr | Escape | Fix | Hex | Int | Oct | Sgn | UnEscape