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

B-7 UniBasic Commands Reference @SYSTEM.RETURN.CODE Values @SYSTEM.RETURN.CODE returns various values based on the last command executed. @SYSTEM.RETURN.CODE is available in UniBasic, and is set by many commands, both UniBasic and ECL. ECL @SYSTEM.RETURN.CODE Values The following table describes the possible @SYSTEM.RETURN.CODE values for various ECL commands. Command Success Return Value Error Return Value BSELECT The number of items in the select list. BUILD.INDEX The number of indexes built. -1 COMPILE.DICT 0 -1 CREATE.INDEX The number of indexes created. -1 DELETE.INDEX The number of indexes deleted. -1 ESEARCH The number of items in the select list. FORM.LIST The number of items in the select list. GET.LIST The number of items in the select list. LIST The number of items listed. -1 LIST.INDEX The number of indexes listed. -1 LIST.ITEM The number of items listed. -1 LIST.LABEL The number of items listed. -1 ECL @SYSTEM.RETURN.CODE Values -1 -1 -1 -1

Command Success Return Value Error Return Value LOCK 0 -1 if you specify an invalid lock number. -2 if the resource is locked by another user. MERGE.LIST The number of items in the select list. MODIFY The number of records modified. NSELECT The number of items in the select list. QSELECT The number of items in the select list. SAVE.LIST The number of items saved. -1 SELECT The number of items in the select list. SORT The number of items listed. -1 SORT.ITEM The number of items listed. -1 SORT.LABEL The number of items listed. -1 SSELECT The number of items in the select list. STACKCOMMON 1 – On 0 – Off -1 -1 0 -1 -1 -1 N/A ECL @SYSTEM.RETURN.CODE Values (continued) B-8

Command Success Return Value Error Return Value<br />

LOCK 0 -1 if you specify an<br />

invalid lock number.<br />

-2 if the resource is<br />

locked by another<br />

user.<br />

MERGE.LIST The number of items in the<br />

select list.<br />

MODIFY The number of records<br />

modified.<br />

NSELECT The number of items in the<br />

select list.<br />

QSELECT The number of items in the<br />

select list.<br />

SAVE.LIST The number of items saved. -1<br />

SELECT The number of items in the<br />

select list.<br />

SORT The number of items listed. -1<br />

SORT.ITEM The number of items listed. -1<br />

SORT.LABEL The number of items listed. -1<br />

SSELECT The number of items in the<br />

select list.<br />

STACKCOMMON 1 – On<br />

0 – Off<br />

-1<br />

-1<br />

0<br />

-1<br />

-1<br />

-1<br />

N/A<br />

ECL @SYSTEM.RETURN.CODE Values (continued)<br />

B-8

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

Saved successfully!

Ooh no, something went wrong!