SEQ(), SEQS() |
|
|
The SEQ() function returns the character set position value of a character.
Format
SEQ(char)
where
The SEQ() function returns the character value of char. It is the inverse of the CHAR() or ECHAR() functions. On an ECS mode system, the returned value is in the range 0 to 65535. On a non-ECS mode system, the returned value is in the range 0 to 255.
If char is a null string, SEQ() returns zero. If char is more than one character in length, SEQ() returns the value of the first character.
The SEQS() function takes a dynamic array char and returns a similarly structured dynamic array in which each element contains the ASCII value of the character in the corresponding element of char.
Example
N = SEQ(KEYIN())
This statement reads a single character from the keyboard and then uses SEQ() to find its ASCII character set value.
See also: |