UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

UniData DELETECOMMON, STACKCOMMON – For information, see the UniData Commands Reference. 1-143 UniBasic Commands Reference

CLEARDATA Syntax CLEARDATA Description The UniBasic CLEARDATA command clears data stored by any executed DATA statements. Subsequent INPUT statements request data from the keyboard because the input queue is empty. Example In the following example, a DATA statement sets up an input queue. An INPUT statement then reads the first item (100) into the variable VAL. Because the value of VAL is 100, a CLEARDATA statement executes and clears the remaining list of data items. The last INPUT statement then requests information from the keyboard rather than getting it from the input queue. If the first value had not been 100, 120 would have been assigned from the second item in the input queue. DATA 100,120,105,54,120 INPUT VAL IF VAL = 100 THEN CLEARDATA PRINT "VALUE": ; INPUT VAL2 Related Commands UniBasic DATA, INPUT CLEARDATA 1-144

UniData<br />

DELETECOMMON, STACKCOMMON – For information, see the UniData<br />

<strong>Commands</strong> <strong>Reference</strong>.<br />

1-143 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!