BASIC ASC Function - fvdhoef/aquarius-plus GitHub Wiki
# DEPRECATED
ASC
TYPE: BASIC Numeric Function
FORMAT: ASC ( string )
Action: Returns a number from 0 to 255 which corresponding to the ASCII value of the first character in the string.
- string is the string to be evaluated.
- Illegal quantity results if the length of string is zero.
Examples:
PRINT ASC("Z")
Prints
90
(the ASCII value of "Z")
X = ASC("zebra")
Sets X to 122 (the ASCII value of "z")
J = ASC(J$)
Sets J to the ASCII value of the first character of J$
plusBASIC v0.23h enhancement
FORMAT: ASC ( string , pos )
Action: Returns a number from 0 to 255 which corresponding to the ASCII value of the specified character in the string.
- string is the string to be evaluated.
- pos is the position of the character.
- Illegal quantity results if pos is less than one or greater than the length of string.
Examples:
PRINT ASC("ABCDE",3)
Prints
67
(the ASCII value of "C")