DBF DELETED()

From Lianjapedia
Jump to: navigation, search

PURPOSE

Is record deleted

SYNONYM

api_dbf_isdeleted()

SYNOPSIS

#include "lianja_api.h"
 
int	DBF_DELETED()
 
<input parameters>
none
 
<output parameters>
none

DESCRIPTION

The DBF_DELETED() function will return 1 if the current record if flagged for deletion, 0 if it is not and -1 if there is no table open in the currently selected cursor.

Deleted records remain in the table until a PACK is performed on the table. The command SET DELETED determines whether or not the record will be displayed.

EXAMPLE

The following example returns .T. if the current record is marked for deletion.

#include "lianja_api.h"
 
lianjaapi_dbf_deleted()
{
    int	isdeleted;
 
    isdeleted = DBF_DELETED();
 
    _retl( isdeleted );
}

SEE ALSO

DBF_DELETE(), DBF_FETCH(), DBF_FILTER(), DBF_GOTO(), DBF_ISEXCLUSIVE(), DBF_ISREADONLY(), DBF_LOCKF(), DBF_LOCKR(), DBF_RECALL(), DBF_RECNO(), DBF_SKIP(), DBF_UNLOCKF(), DBF_UNLOCKR()