DIAdem Help

Method: Asc for VBS

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

Method: Asc for VBS

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

vAsc = Object.Asc(string)
ObjectVBS
Object with this method. You do not need to specify this object.
stringVariant
Specifies a character string.
vAscVariant
Receives the ANSI character code.

The following example displays the ANSI character code of various character strings:

Call MsgBox(Asc("A"))       ' Returns 65
Call MsgBox(Asc("a"))       ' Returns 97
Call MsgBox(Asc("Austin"))  ' Returns 65

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