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.

Command or<br />

Function STATUS() Return Values<br />

READT 0 – Successful read.<br />

1 – End of file encountered.<br />

2 – End of tape encountered.<br />

3 – Tape not assigned.<br />

4 – Parity error.<br />

5 – Unknown hardware error.<br />

6 – Other unspecified error.<br />

READU 0 – Successful read.<br />

1 – UniData was unable to read the record.<br />

n – The record is locked. The user number of the user who<br />

locked the file is returned in n.<br />

RECORDLOCKED n – The record is locked. The user number of the user who owns<br />

the lock is returned in n.<br />

0 – The record is not locked.<br />

-1 – The file is NFA. Currently, RECORDLOCKED does not<br />

support NFA files.<br />

-2 – Invalid file type. file.var can contain the null value.<br />

-3 – System error: unknown user.<br />

SELECTINDEX 0 – The select list is loaded with alternate key values or record<br />

IDs for the specified file.<br />

1 – No alternate index key exists for this attribute using the name<br />

specified. The select list is empty.<br />

SETINDEX 0 – The alternate key specified exists.<br />

1 – Error.<br />

2 – The alternate key specified does not exist.<br />

<strong>Commands</strong> and Functions That Set STATUS() Return Values (continued)<br />

F-5

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

Saved successfully!

Ooh no, something went wrong!