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

This program segment produces the following results: 1-274 UniBasic Commands Reference LIST CLIENTS NAME COMPANY 17:33:03 Apr 27 1999 1 CLIENTS... Name.......................... Company Name.................. 9999 Paul Castiglione Chez Paul 10034 Fredrick Anderson Otis Concrete 9980 Beverly Ostrovich Riley Architects 10015 Cal di Grigorio Regina Flooring 4 records listed Related Commands UniBasic DELETELIST, READLIST, SELECT, SELECTINDEX, SELECTINFO, WRITELIST UniQuery DELETE.LIST, GET.LIST, SELECT, SSELECT, SAVE.LIST – For information, see the UniQuery Commands Reference. UniData SQL SELECT – For information, see the UniData SQL Commands Reference.

FOR/NEXT Syntax FOR var = val1 TO val2 [STEP val3] statements] [UNTIL | WHILE expr] statements NEXT [var] Description The UniBasic FOR/NEXT command executes statements repeatedly while incrementing a variable over a range until it reaches the end of the range, or until the condition in the WHILE or UNTIL clause is achieved. You can nest FOR/NEXT constructions. Each FOR statement must end with a NEXT statement. FOR/NEXT should be constructed so termination occurs based on the WHILE or UNTIL condition. Use the CONTINUE statement to transfer control to the next iteration of the command. Parameters The following table describes each parameter of the syntax. Parameter Description var Specifies the variable to increment. val1 Specifies the beginning of the range for incrementing var. val2 Specifies the end of the range for incrementing var. STEP val3 Specifies the change to use in incrementing var. The increment can be negative or positive, making the variable decrease or increase. FOR/NEXT Parameters FOR/NEXT 1-275

This program segment produces the following results:<br />

1-274 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

LIST CLIENTS NAME COMPANY 17:33:03 Apr 27 1999 1<br />

CLIENTS... Name.......................... Company<br />

Name..................<br />

9999 Paul Castiglione Chez Paul<br />

10034 Fredrick Anderson Otis Concrete<br />

9980 Beverly Ostrovich Riley Architects<br />

10015 Cal di Grigorio Regina Flooring<br />

4 records listed<br />

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

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

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

WRITELIST<br />

UniQuery<br />

DELETE.LIST, GET.LIST, SELECT, SSELECT, SAVE.LIST – 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>.

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

Saved successfully!

Ooh no, something went wrong!