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.

STATUS Function Return Values<br />

After you execute OPENSEQ, the STATUS function returns one of the values<br />

described in the following table.<br />

Example<br />

In the following example, the program statement opens the sequential file<br />

INV.SOURCES in the directory PRINTERS, and assigns the file variable PRNT:<br />

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

OPENSEQ 'PRINTERS','INV.SOURCES' TO PRNT ELSE GOSUB CLOSED:<br />

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

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

CLOSESEQ, OPEN, OSBREAD, OSBWRITE, OSCLOSE, OSDELETE,<br />

OSOPEN, OSREAD, OSWRITE, READSEQ, WEOFSEQ, WRITESEQ,<br />

WRITESEQF<br />

UniData<br />

Value Description<br />

0 The record does not exist.<br />

1 The file you specify is not a sequential-access file.<br />

2 The file does not exist.<br />

3 The READONLY clause was included in the command<br />

statement and the record does not exist.<br />

4 An unknown error occurred (such as having too many files open<br />

or permission problems).<br />

STATUS Function Return Values<br />

DEFAULT.LOCKED.ACTION – For information, see UniData <strong>Commands</strong><br />

<strong>Reference</strong>.

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

Saved successfully!

Ooh no, something went wrong!