ORD
(Function)
Converts to a character code.
ORD (<Character string >)
This statement converts the first character in <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 byte of the Shift-JIS code is returned. If the character string is " ", it returns 0.
CHR$, Character Code Table (Appendix 1)
DIM li1 As Integer
|
|
li1 = ORD( "ABCDEFGH" )
|
'Assigns character code 65(&H41) of A to li1.
|