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?

READLIST

Description

READLIST allows the program to retrieve a previously stored list, into a variable. It takes the general form:

READLIST variable1 FROM expression {SETTING variable2} THEN|ELSE statement

Where:

  • variable1 is the variable into which the list will be read.
  • expression should evaluate to the name of a previously stored list to retrieve. If specified, variable2 will be set to the number of elements in the list.
  • If the statement succeeds in retrieving the list, then the statements associated with any THEN clause will be executed. If the statement fails to find the list, then the statements associated with any ELSE clause will be executed.

The READLIST statement is identical in function to the GETLIST statement.

An example of use is as: 

READLIST MyList FROM "MyList" ELSE STOP
LOOP
* Loop until there are no more elements
WHILE READNEXT Key FROM MyList DO
......
REPEAT


See also: DELETELIST, FORMLIST, WRITELIST

Go back to jBASE BASIC.

Was this article helpful?