The error number for the back-end’s duplicate records error.
Database
DataFlex ODBC Driver, revision 5 and higher
Integer, temporary
Read/Write
Any integer value
Use cli.pkg
Get_Attribute DF_DATABASE_DUPREC_ERRORNUMBER of {driverNumber} {databaseHandle} to {IntegerVariable}
Set_Attribute DF_DATABASE_DUPREC_ERRORNUMBER of {driverNumber} {databaseHandle} to {IntegerVariable}
The error number for the back-end’s duplicate records error. When this error occurs, the driver will translate it to the DataFlex duplicate record error number (DFERR__DUPLICATE_REC, error 28 "Duplicate records not allowed").
Procedure ShowDBAttribute Integer iDriver Handle hDatabase
Integer iAttribValue
Get_Attribute DF_DATABASE_DUPREC_ERRORNUMBER of iDriver hDatabase to iAttribValue
Showln "Duplicate records error number: " iAttribValue
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.