Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

SEQ

Description

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

SEQ(expression)

Where:

expression may evaluate to any data type. However, the SEQ function will convert the 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 


Go back to jBASE BASIC.


Was this article helpful?