Topic complex |
Table functions |
Function |
genindex() |
Short |
Creates a new index |
Syntax |
GenIndex(db : INTEGER; IndDef : STRING; IndName : STRING) : INTEGER |
Parameter |
db : Table handle from OpenDB
IndDef : Index defintions as a string
IndName : File name of the index (without path, with '.ind' as extension) |
Return |
0 : Function could not be executed (Error code with TDB_LastError)
1..15 : Number of the created index
|
See also: |
|
Description |
Most frequent errors: "Index allready exists". tdbengine do not creat a index, if a index file with the same name in the directory of the table allready exists.
Important: The index is always saved in the same directory like the table. The name of the index file should always have the extension '.ind'. The file names should comply with the 8.3 concention (xxxxxxxx.ind). Specification of a directory is also not valid!
|