11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FORMLIST<br />

Syntax<br />

FORMLIST dynamic.array.var [TO list.num.expr]<br />

Description<br />

The <strong>UniBasic</strong> FORMLIST command creates an active select list from a dynamic<br />

array. FORMLIST uses the attribute marks in dynamic.array.var to create a select list<br />

that you can use with READNEXT statements or other list processing commands<br />

such as external LIST statements.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

dynamic.array.var Specifies a dynamic array from which to create a select list.<br />

TO list.num.expr Specifies which list, 0 through 9, you want the list sent to. 0 is<br />

the default list.<br />

FORMLIST Parameters<br />

Examples<br />

In the following example, the program segment creates a select list and then uses that<br />

list to print four records in the CLIENTS file:<br />

ARRAY.LIST = 9999:@AM:10034:@AM:9980:@AM:10015<br />

FORMLIST ARRAY.LIST TO 0<br />

PRINT "PROCESSING THE FOLLOWING ITEMS:"<br />

PERFORM "LIST CLIENTS NAME COMPANY"<br />

END<br />

FORMLIST 1-273

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

Saved successfully!

Ooh no, something went wrong!