Asc()

Syntax

Result = Asc(String$)
Description
Return the first character UTF-16 value of the specified string.

Parameters

String$ The string to get the first character value.

Return value

The string first UTF-16 character value, between 0 and 65535.

Example

  Debug Asc("!") ; will print '33'
  Debug Asc("") ; will print '8226'

Remarks

It is also possible to obtain a constant character value while placing it between apostrophes.

Example

  Debug '!' ; will print '33'
  Debug '' ; will print '8226'

See Also

Chr()

Supported OS

All

String Index - Bin() ->