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

The following table describes the status of each return code. Return Code Status 0 Success. 1-418 UniBasic Commands Reference 1 Context record does not exist. 2 Context record could not be accessed (e.g. wrong password). 3 Invalid content (file was not saved by the saveSecurityContext() function). 4 Other problems that caused context load failure. Refer to the log file for more information. loadSecurityContext Return Codes

LOCATE Syntax LOCATE element IN dyn.array[,var] [BY search.type] SETTING location [THEN statements END] ELSE statements END For backward compatibility, UniData supports the following alternate syntax: LOCATE(element,dyn.array [,attrib.expr[,val.expr[,subval.expr]]];location [;search.type]) [THEN statements] [END] ELSE statements Description The UniBasic LOCATE command locates an element within a dynamic array. For LOCATE to be successful, the search string, element, must match the entire array element (including any associated lower-level elements). LOCATE does not modify the data in the array. Note: UDT.OPTIONS 85 changes the sort order for an array of mixed negative and positive numbers. With UDT.OPTIONS 85 on, negative and positive numbers are sorted in numeric order regardless of sign. This is effective for the first form of the syntax only. LOCATE 1-419

The following table describes the status of each return code.<br />

Return<br />

Code Status<br />

0 Success.<br />

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

1 Context record does not exist.<br />

2 Context record could not be accessed (e.g. wrong password).<br />

3 Invalid content (file was not saved by the saveSecurityContext()<br />

function).<br />

4 Other problems that caused context load failure. Refer to the log file for<br />

more information.<br />

loadSecurityContext Return Codes

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

Saved successfully!

Ooh no, something went wrong!