
15-50
15.15 Character String Function
ASC (Function)
Function
Converts to a character code.
Format
ASC (<Character string >)
Explanation
This statement converts the first character of <Character string > to a character
code.
Note: 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.
Related Terms
CHR$, character code table (Appendix 1)
Example
DIM li1 As Integer
li1 = ASC( “ABCDEFGH” ) 'Assigns character code 65(&H41) of A to li1.
Komentáře k této Příručce