DbiUndeleteRecord

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

DbiUndeleteRecord

Return to chapter overview

C syntax

DBIResult DBIFN DbiUndeleteRecord (hCursor);

Delphi syntax

function DbiUndeleteRecord (hCursor: hDBICur): DBIResult stdcall;

Description

DbiUndeleteRecord undeletes a dBASE or FoxPro record that has been marked for deletion (a soft delete).

Parameters

hCursor                Type: hDBICur                (Input)
Specifies the dBASE or FoxPro cursor handle.

Usage

dBASE or FoxPro: This function is supported with dBASE or FoxPro tables only.

Paradox, Access: This function is not supported with Paradox and Access tables.

SQL: This function is not supported with SQL tables.

Prerequisites

The cursor must be positioned on a record. The cursor must have the property bDeletedOn set to TRUE.

Completion state

The current record is recalled if it was marked for deletion.

DbiResult

Meaning

DBIERR_NONE

The dBASE or FoxPro record was successfully undeleted.

DBIERR_INVALIDHNDL

The specified cursor handle is invalid or NULL.

DBIERR_BOF

The cursor is positioned on the crack at the beginning of the file.

DBIERR_EOF

The cursor is positioned on the crack at the end of the file.

DBIERR_NA

The specified record was not deleted; cannot undelete the record.

DBIERR_TABLEREADONLY

The specified table is read-only; cannot undelete the record.

DBIERR_FILELOCKED

The table is locked by another user; cannot undelete the record.

DBIERR_NOTSUPPORTED

The function is supported only for dBASE or FoxPro tables.

DBIERR_NOCURRREC

The cursor is not positioned on a valid record.

See also

DbiDeleteRecord, DbiPackTable