Asc

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

Syntax
      Asc (string)

Asc ("A") will return 65

Examples

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:

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-2021 SS64.com
Some rights reserved