Can be used to setup support for creating an index.
Database
DataFlex ODBC Driver, revision 5 and higher
Boolean, temporary
Read/Write
True, False
Use cli.pkg
Get_Attribute DF_DATABASE_INDEX_CREATE of {driverNumber} {databaseHandle} to {BooleanVariable}
Set_Attribute DF_DATABASE_INDEX_CREATE of {driverNumber} {databaseHandle} to {True|False}
Some ODBC drivers do not accurately report capabilities. A number of settings have been created to correct that problem. If a driver reports that it support a feature it really does not support (or vice versa), errors can occur.
The DF_DATABASE_INDEX_CREATE attribute can be used to setup support for creating an index. The actual index can be created using the Create_Index command.
Procedure ShowDBAttribute Integer iDriver Handle hDatabase
Boolean bAttribValue
Get_Attribute DF_DATABASE_INDEX_CREATE of iDriver hDatabase to bAttribValue
Showln "Support for creating an index: " (If(bAttribValue, "YES", "NO"))
End_Procedure
The sample code above shows the current setting for a given database. The database handle can be obtained via the DF_DATABASE_ID attribute.