Asc()

Asc() returns the ASCII-Byte value of the first charater passed.

Pre ProcessorThe function is also available in the Preprocessor, using constants only; it will not result in machine code.

Syntax: byte = Asc( a as string )

Example:

  dim a as byte
  a = asc("A") ' Result: 65