SEQ

SEQ


SENTENCE Index Level SIN
Syntax SEQ( ascii.character.expression )
Category BASIC
Type Function
Description converts any ASCII character to its corresponding numeric equivalent in the range 0 to 255.

This "seq" function is the opposite of the "char" function.

Any expression can be used as an argument, but all characters are ignored beyond position 1.

The "seq" of a null string ends up using the segment mark (x'ff') end-of-string delimiter as the argument resulting in a value of 255.
Options
See Also CHAR statements & functions functions
Example input c,1
if seq(c)<32 then stop

This example stops when any control character is input.
Warnings
Compatibility D3 7.0 AP R83
SENTENCE Index Level SIN