Wednesday, January 26, 2011

jBase Infobasic Command CLEARSELECT

Use the CLEARSELECT statement to clear active select lists.

Command Syntax

CLEARSELECT {ListName | ListNumber}

Syntax Elements

ListName must evaluate to a jBASE BASIC list variable. ListNumber is one of the numbered lists in the range 0 to 11. If neither ListName nor ListNumber are specified then it clears the default list (0).

Example

A = "good" : @AM : "bad" : @AM : "ugly"
B = "night" : @AM : "day"
SELECT A TO 3
SELECT B TO blist
adone = 0; bdone = 0
LOOP
READNEXT Ael FROM 3 ELSE adone = 1
READNEXT Bel FROM blist ELSE bdone = 1
UNTIL adone AND bdone DO
CRT Ael, Bel
CLEARSELECT 3
CLEARSELECT blist
REPEAT
This program displays: good night

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems