11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

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

element Specifies the string to search for. element can be a variable, array<br />

element, function, or literal.<br />

dyn.array <br />

Specifies a dynamic array and level (attribute, value, or<br />

subvalue) to search. The search operates as follows:<br />

The search begins at the lowest level specified.<br />

Only the specified level is searched.<br />

Returns the position of the located string relative to the<br />

beginning of the search.<br />

1 in attrib.expr causes a search starting with the first attribute in<br />

the file.<br />

0 in any expression is treated as 1.<br />

If the arguments cause the search to begin beyond the end of the<br />

dynamic array, the ELSE clause executes.<br />

See also the LOCATE in BASICTYPEs U, P, and M table.<br />

,var Specifies the attribute, value, or subvalue in the array at which<br />

to begin the search.<br />

BY search.type Selects a type of search appropriate for the physical arrangement<br />

of a sorted array.<br />

AL – Ascending, contents left-justified.<br />

AR – Ascending, contents right-justified.<br />

DL – Descending, contents left-justified.<br />

DR – Descending, contents right-justified.<br />

When UniData first retrieves the data, it sorts the data in the<br />

requested order.<br />

Do not use a BY clause in a LOCATE statement on an unsorted<br />

array. The search could terminate before checking all elements.<br />

UDT.OPTIONS 85 modifies the sort to place negative numbers<br />

first rather than sort them in ASCII order.<br />

LOCATE Parameters

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

Saved successfully!

Ooh no, something went wrong!