UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
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
- Page 1072 and 1073: C:\Program Files\Adobe\FrameMaker8\
- Page 1074 and 1075: C:\Program Files\Adobe\FrameMaker8\
- Page 1076 and 1077: C:\Program Files\Adobe\FrameMaker8\
- Page 1078 and 1079: ASCII Character Codes This appendix
- Page 1080 and 1081: A-3 UniBasic Commands Reference ASC
- Page 1082 and 1083: A-5 UniBasic Commands Reference ASC
- Page 1084 and 1085: A-7 UniBasic Commands Reference ASC
- Page 1086 and 1087: A-9 UniBasic Commands Reference ASC
- Page 1088 and 1089: A-11 UniBasic Commands Reference AS
- Page 1090 and 1091: UniBasic@variables This appendix li
- Page 1092 and 1093: B-3 UniBasic Commands Reference @va
- Page 1094 and 1095: @USER0 @USER1 @USER2 @USER3 @USER4
- Page 1096 and 1097: B-7 UniBasic Commands Reference @SY
- Page 1098 and 1099: B-9 UniBasic Commands Reference Uni
- Page 1100 and 1101: C-2 UniBasic Commands Reference Ari
- Page 1102 and 1103: C-4 UniBasic Commands Reference Boo
- Page 1104 and 1105: Reserved Words This appendix lists
- Page 1106 and 1107: D-3 UniBasic Commands Reference Res
- Page 1108 and 1109: D-5 UniBasic Commands Reference Res
- Page 1110 and 1111: D-7 UniBasic Commands Reference Res
- Page 1112 and 1113: D-9 UniBasic Commands Reference Res
- Page 1114 and 1115: Commands Affected by BASICTYPEs and
- Page 1116 and 1117: Command or Function E-3 UniBasic Co
- Page 1118 and 1119: Command or Function E-5 UniBasic Co
- Page 1120 and 1121: Command or Function E-7 UniBasic Co
- Page 1124 and 1125: F-4 UniBasic Commands Reference Com
- Page 1126 and 1127: SUBROUTINE (Update Trigger) SUBROUT
- Page 1128 and 1129: F-8 UniBasic Commands Reference Com
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