Returns the ASCII code of the specified character. The ASCII code used corresponds to the ANSI standard used in Windows.
ASCIICode = Asc("A") // Returns 65
ASCIICode = Asc("Barbier") // Returns 66
Syntax
<Result> = Asc(<Character string to process>)
<Result>: Integer
ASCII code (between 0 and 255).
<Character string to process>: Character, character string or buffer
Character whose ASCII code must be calculated. If this parameter corresponds to: - an empty string or buffer, <Result> will be 0.
- a character string, <Result> will be the ASCII code of the first character.
- a buffer, <Result> will be the ASCII code of the first byte.
Remarks
Extracting strings
You can extract a string with the [[ and ]] operators to convert a character at any position in the string.
For example: "Asc(Str[[N]])" returns the ASCII value of the Nth character in the "Str" string.