Function that returns the Ascii code which represents a specific character.

      Asc (string)

Asc ("A") will return 65


Dim intDemo

intDemo = Asc ("A")
MsgBox intDemo
> 65

intDemo = Asc ("ABC")
MsgBox intDemo
> 65

“I've nothing much to offer, There's nothing much to take, I'm an absolute beginner” ~ David Bowie

Related VBScript commands

Chr - Return the string character for ChrCode (ASCII code).
AscB - Instead of returning the character code for the first character, AscB returns the first byte.
AscW(String) - Return Unicode code for string.

Copyright © 1999-2024
Some rights reserved