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

F-2 UniBasic Commands Reference Command or Function STATUS() Return Values FILELOCK 0 – File locked successfully. usernum – If the file was already locked, and if the LOCKED clause was included in the FILELOCK statement, STATUS() returns the user number of the process that locked the file. FMT 0 – Successful completion. 1 – String expression is invalid or exceeds the allowable string size. 2 – Conversion code is invalid. GETPTR 0 – Successful completion. 1 – No more rows exist. 2 – Other error. ICONV 0 – Successful conversion. 1 – Invalid input data. 2 – Invalid conversion specification. 3 – Invalid date for “D” conversion code only. 5 – Null value if null value handling is turned on. ICONV D 0 – Successful conversion of a valid date. 1 – Invalid input date. 2 – Invalid conversion specification. 3 – Date was converted correctly, but month and day were inverted in input value. ICONVS 0 – Successful conversion. 1 – Invalid input data. 2 – Invalid conversion specification. 3 – Invalid date for “D” conversion code only. 5 – Null value if null value handling is turned on. Commands and Functions That Set STATUS() Return Values

Command or Function STATUS() Return Values MATWRITE 0 – The record was locked before MATWRITE executed. You are in danger of simultaneously updating a record being updated by another user. -2 – The record was not locked before MATWRITE executed. MATWRITEU 0 – The record was locked before MATWRITEU executed. You are in danger of simultaneously updating a record being updated by another user. -2 – The record was not locked before MATWRITEU executed. OCONV D 0 – Successful conversion of a valid date. 1 – The input date was invalid. 2 – The conversion code was invalid. OPENSEQ 0 – The record does not exist. 1 – The file you specify is not a sequential-access file. 2 – The file does not exist. 3 – The READONLY clause was included in the command statement and the record does not exist. 4 – An unknown error occurred (such as having too many files open or permission problems). OSBREAD 0 – The read was successful. 1 – The file name is invalid. 2 – Access is denied by the operating system. 3 – The file does not exist. 4 – An unknown error occurred. OSBWRITE 0 – The write was successful. 1 – The file name is invalid. 2 – You do not have permission to access the file. 4 – The file does not exist. OSCLOSE 0 – The file has closed successfully. 5 – The file did not close. Commands and Functions That Set STATUS() Return Values (continued) F-3

Command or<br />

Function STATUS() Return Values<br />

MATWRITE 0 – The record was locked before MATWRITE executed. You<br />

are in danger of simultaneously updating a record being updated<br />

by another user.<br />

-2 – The record was not locked before MATWRITE executed.<br />

MATWRITEU 0 – The record was locked before MATWRITEU executed. You<br />

are in danger of simultaneously updating a record being updated<br />

by another user.<br />

-2 – The record was not locked before MATWRITEU executed.<br />

OCONV D 0 – Successful conversion of a valid date.<br />

1 – The input date was invalid.<br />

2 – The conversion code was invalid.<br />

OPENSEQ 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<br />

open or permission problems).<br />

OSBREAD 0 – The read was successful.<br />

1 – The file name is invalid.<br />

2 – Access is denied by the operating system.<br />

3 – The file does not exist.<br />

4 – An unknown error occurred.<br />

OSBWRITE 0 – The write was successful.<br />

1 – The file name is invalid.<br />

2 – You do not have permission to access the file.<br />

4 – The file does not exist.<br />

OSCLOSE 0 – The file has closed successfully.<br />

5 – The file did not close.<br />

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

F-3

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

Saved successfully!

Ooh no, something went wrong!