Asc

This function determines the ASCII character code corresponding to the first letter in a string.

Syntax

Asc(string)

Parameters

string
Any valid string expression. If string contains no characters, a run-time error occurs.

Return Values

Returns an ASCII character code.

Remarks

Use the function AscB with byte data contained in a string. Instead of returning the character code for the first character, AscB returns the first byte. The function AscW is provided for 32-bit platforms that use Unicode characters. It returns the Unicode (wide) character code, thereby avoiding the conversion from Unicode to ASCII.