Function DbCreateIndex() Foundation
Creates an index file in a work area.
DbCreateIndex( <cIndexFile> , ; <cIndexKey> , ; [<bIndexKey>] , ; [<lUnique>] ) --> NIL
The return value of DbCreateIndex() is always NIL.
The function DbCreateIndex() exists for compatibility reasons. The function OrdCreate() should be used instead of DbCreateIndex().
The index function DbCreateIndex() creates an index file in a work area. When the function is used without the alias operator, it generates the index file in the current work area. The function is similar to OrdCreate(), but can only create one index per index file. If index files are already open in the work area, they are closed prior to the generation of the new index. The new index becomes the controlling index and the record pointer is positioned on the first logical record of the new index.
Before the call of DbCreateIndex(), a database file must be exclusively opened in the work area.
The command INDEX ON can be used instead of DbCreateIndex(). INDEX ON is only effective in the current work area.
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.