ASC
(Function)

Converts to a character code.

ASC (<Character string >)

This statement converts the first character of <Character string > to a character code.

This function returns only the first byte value of a character string. Therefore, even if the first character is kanji, the first 1 byte of the Shift-JIS code is returned.

DIM li1 As Integer
|
|
li1 = ASC( "ABCDEFGH" )
|
'Assigns character code 65(&H41) of A to li1.
|