Function OrdSetFocus() Foundation
Sets the controlling index in a work area.
OrdSetFocus( [<cTagName>|<nIndex>] ) --> cLastIndexName
The return value of OrdSetFocus() is a character string containing the name of the controlling index previously set.
The index function OrdSetFocus() sets the controlling index in a work area. This index determines the logical order of the data records in a DBF file. When the function is used without the alias operator, it defines the controlling index in the current work area.
When no argument is passed to the function, it returns the index name of the controlling index. Otherwise, the specified index becomes the controlling index and the index name of the previous controlling index is returned.
The activation of an index causes the data records of the database file in the work area to appear in the logical order predetermined by the index. When the value for <nIndex> is equal to zero, access to data records is in natural order (not in logical order). In this case, any open index files still continue to be updated.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.