Function OrdListAdd() Foundation
Activate one or more indexes in a work area.
OrdListAdd( <cIndexFile> [,<cTagName>] ) --> NIL
The return value of OrdListAdd() is always NIL.
The index function OrdListAdd() activates one or more indexes from an index file in a work area. When the function is used without the alias operator, the index file is opened in the current work area and the indexes from the index file become active in this area. If no index file is open in the work area, OrdListAdd() sets the controlling index for the DBF file in the work area. When index files are already open, the controlling index remains unchanged. The data record pointer is always positioned to the first logical data record of the controlling index after the call to OrdListAdd().
The number of indexes that can be managed within an index file depends on the active database engine (DBE). The DBFNTX DBE supports only one index per index file.
When an index file is active, the data records of the DBF file in the work area are logically sorted into the order predetermined by the index.
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.