Icon TDataLossCause

Unit: dbisamtb

TDataLossCause = (dlUnknown,dlKeyViolation,dlValidityCheckFail,
      dlFieldDeletion,dlFieldConversion)

This type is used as a parameter to the TDBISAMTable and TDBISAMQuery OnDataLost event to determine the type of data loss incurred during the process of altering a table's structure or adding an index.

ElementDescription
dlFieldConversionIndicates that the cause of the data loss is the inability of DBISAM to handle the conversion of a given field from one data type to another due to incompatible data types. The ContextInfo parameter of the OnDataLost event will indicate the field name for which the failure is occurring.
dlFieldDeletionIndicates that the cause of the data loss is the deletion of a field. The ContextInfo parameter of the OnDataLost event will indicate the field name that has been deleted.
dlKeyViolationIndicates that the cause of the data loss is a duplicate index key. The ContextInfo parameter of the OnDataLost event will indicate the index name for which the key violation is occurring.
dlUnknownIndicates that the cause of the data loss is unknown or undetermined by DBISAM.
dlValidityCheckFailIndicates that the cause of the data loss is a failure of a constraint for a given field. The ContextInfo parameter of the OnDataLost event will indicate the field name for which the failure is occurring.
Image