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. If the program is compiled as unicode, it will return an unicode character value, else it will return an ASCII 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'
A table with all Ascii values and their relating figures may be found here.

See Also

Chr()

Supported OS

All

String Index - Ascii() ->