Skip to content

DF_DATABASE_DUPREC_ERRORNUMBER

The error number for the back-end’s duplicate records error.

Level

Database

Supported by

DataFlex ODBC Driver, revision 5 and higher

Type

Integer, temporary

Access

Read/Write

Values

Any integer value

Syntax

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}

Driver Configuration Keyword

Duprec_Errornumber

Remarks

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").

Example

The sample code below shows the current setting for a given database. The database handle can be obtained via the DF_DATABASE_ID attribute.

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