# SEQ

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

# Description

The SEQ function returns numeric ASCII value of a character. It takes the general form:

SEQ(expression)
1

Where:

expression may evaluate to any data type. However, the SEQ function will convert expression to a string and operate on the first character of that string.

SEQ operates on any character in the integer range 0 to 255

# International Mode

The SEQ function will return numeric values beyond 255 for UTF-8 byte sequences representing any Unicode values above 0x000000ff.

An example of use is as:

EQU ENQ TO 5
* Get next comms code

INPUT A, 1 FOR 200 ELSE BREAK
IF SEQ (A) = ENQ THEN
* Respond to ENQ char here
1
2
3
4
5
6

Go back to jBASE BASIC

Go back to Programmers' Reference Guide