Asc()
Syntax
Result = Asc(String$)Description
Return the first character value of the specified string.
Parameters
String$ The string to get the first character value.
Return value
The string first character value.
Example
Debug Asc("!") ; will print '33'
Remarks
It is also possible to obtain a constant character value while placing it between apostrophes.
Example
Debug '!' ; will print '33'
Debug Asc("!") ; will print '33'
Debug Asc("€") ; will print '8364' = 20AC in hexadecimal
unicode$="€€ "
Debug Asc(unicode$) ; will print '8364'
ShowMemoryViewer(@unicode$,8)
A table with all Ascii values and their relating figures may be found here.
See Also
Chr()
Supported OS
All