Function OrdCreate() Foundation
Creates an index in an index file.
OrdCreate( <cIndexFile> , ;
[<cTagName>] , ;
<cIndexKey> , ;
[<bIndexKey>] , ;
[<lUnique>] , ;
[<lAdditive>] ) --> NIL
The return value of OrdCreate() is always NIL.
The index function OrdCreate() creates an index in a work area. When the function is used without the alias operator, it generates the index for the current work area. The function is similar to DbCreateIndex(), but allows the generation of several indexes per index file. This ability depends on whether the active database engine (DBE) supports index files containing several indexes.
If the index file <cIndexFile> does not exist, it is created and the index is built within it. If a DBE supporting several indexes per index file is used, <cIndexFile> does not need to be specified when a controlling index is available in the work area. In this case, the index <cTagName> is added to the index file containing the controlling 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.