RDD

Deleted()

Test the deletion mark of the current record

Syntax

Signature
Deleted() --> lDeleted

Arguments

None.

Return value

.T. when the current record is marked for deletion; otherwise .F..

Description

Deleted() reports the deletion flag of the current record without changing it.

Notes

The flag remains until DbRecall() or DbPack() changes the record.

Example

Deleted.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   DbGoTop()
   DbDelete()
   QOut( "Deleted: " + IIF( Deleted(), "YES", "NO" ) )
   DbRecall()
   DbCloseArea()

RETURN

Output

See also