
15-60
ORD (Function) [Conforms to SLIM]
Function
Converts to a character code.
Format
ORD (<Character string >)
Explanation
This statement converts the first character in <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
byte of the Shift-JIS code is returned. If the character string is “
”, it returns 0.
Related Terms
CHR$, Character code table (Appendix 1)
Example
DIM li1 As Integer
li1 = ORD( “ABCDEFGH” ) 'Assigns character code 65(&H41) of A to li1.
Commentaires sur ces manuels