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.

Parameters<br />

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

Parameter Description<br />

file.var Specifies a file variable from which to read record IDs.<br />

If you do not specify a file.var, UniData reads from the default file. If<br />

no default file is open, a fatal error occurs.<br />

The default file is one for which no file variable is assigned in the<br />

OPEN statement.<br />

dyn.array Specifies a dynamic array from which to select a list of attributes.<br />

TO list.num.expr Supported in BASICTYPEs R and U only. Specifies a numbered<br />

select list, 0–9, to contain record IDs. If you do not specify a list,<br />

SELECT creates list 0.<br />

TO list.var.expr Supported in all BASICTYPEs. Specifies a named select list to<br />

contain record IDs.<br />

Initialize list.var.expr with a statement like<br />

list.name = ''<br />

before using it in the SELECT statement to avoid a compiler warning<br />

for an uninitialized variable.<br />

ON ERROR<br />

statements<br />

Specifies statements to execute if the SELECT statement fails with a<br />

fatal error because the file is not open, an I/O error occurs, or UniData<br />

cannot find the file.<br />

If you do not specify the ON ERROR clause and a fatal error occurs,<br />

the program terminates.<br />

SELECT Parameters<br />

SELECT 1-703

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

Saved successfully!

Ooh no, something went wrong!