11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

In the next example, the program segment first creates a list of all IDs in the<br />

ORDERS file and assigns the ID list to list 1. It then uses the READNEXT command<br />

to read the IDs from the list sequentially, executing a subroutine,<br />

PROCESS.ORDERS, each time.<br />

SELECT ORDERS TO 1<br />

LOOP<br />

READNEXT ORDER.ID FROM 1 ELSE TAPE.ID = " "<br />

WHILE ORDER.ID<br />

GOSUB PROCESS.ORDERS<br />

REPEAT<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

DELETELIST, FORMLIST, READLIST, SELECTINDEX, SELECTINFO,<br />

WRITELIST<br />

UniQuery<br />

DELETE.LIST, GET.LIST, SAVE.LIST, SELECT, SSELECT – For information, see<br />

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

UniData SQL<br />

SELECT – For information, see the UniData SQL <strong>Commands</strong> <strong>Reference</strong>.<br />

SELECT 1-705

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

Saved successfully!

Ooh no, something went wrong!