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?

CLEARSELECT

Description 

The CLEARSELECT statement is to clear active select lists.

CLEARSELECT {ListName | ListNumber}

Where:

  • ListName must evaluate to a jBASE BASIC list variable,
  • ListNumber is one of the numbered lists in the range 0 to 11.

Note:

If neither ListName nor ListNumber are specified then it clears the default list (0).

An example of use is as:

0001     A = "good" : @AM : "bad" : @AM : "ugly"
0002     B = "night" : @AM : "day"
0003
0004     SELECT A TO 3
0005     SELECT B TO blist
0006
0007     adone = 0; bdone = 0
0008
0009     LOOP
0010         READNEXT Ael FROM 3 ELSE adone = 1
0011         READNEXT Bel FROM blist ELSE bdone = 1
0012     UNTIL adone AND bdone DO
0013         CRT Ael, Bel
0014         CLEARSELECT 3
0015         CLEARSELECT blist
0016     REPEAT

to display: good night


Go back to jBASE BASIC.

Was this article helpful?