The asc function is the inverse of the chr$ function in the sense that asc(chr$(NumExpr)) equals NumExpr for any numeric expression NumExpr whose value is between 0 and 255 inclusive. However, asc and chr$ are not true inverses since chr$(asc(StrExpr)) equals StrExpr only for string expressions StrExpr of a single character.
b$ = "Basmark QuickBASIC" print asc(b$) print asc("Basmark QuickBASIC")produces
66 66
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber