Asc (Function)
Get the value of the character code for the specified character.
Parameters
<Character String>
|
The character string (character type) that requests the character code.
|
Return Value
Returns the value of the integer.
The content of the value is the character code of the specified character. Character code is ASCII.
Description
The character code of the head character of the of the character string specified by <Character String> is returned in decimal.
There is chr$ as the reverse function of Asc. The chr$ function returns the character that corresponds to the specified character code.
Example
Get the character code for 'A'.
CHARA$="A"
CODE&=Asc(CHARA$)
The result is as follows:
CODE&=65