FILEFLEX API REFERENCE



NAME
DBRecordDeleted -- Determine if the current record is deleted

SYNTAX
DBRecordDeleted(num)

CATEGORY
Retrieving Information

DESCRIPTION
When you tell FileFlex to delete a record using DBDeleteRecs, FileFlex doesn't actually remove the data. Rather it sets a flag in the data file that tells you whether the record is marked for deletion. This makes operations very, very fast and also allows you to recover the data later. However, when navigating over records, it's important that you check to see if a record has been marked for deletion to determine whether you want to present the information to the user. To permanently delete a record, see the functions DBPack and DBZapRecs.

You can determine if any specific record has been deleted by using the FileFlex function DBRecordDeleted, supplying the record number as a parameter. FileFlex returns a "Y" if the record's delete flag has been set, "N" otherwise.


EXAMPLE
 put DBRecordDeleted(29) into recDeleted

SEE ALSO
DBDeleteRecs, DBPack, DBRecallRecs, DBZapRecs

INTERNAL FUNCTION NUMBER
20


Copyright © 1992-1998 by David Gewirtz, under license to Component Enterprises, Inc.
Contact: info@component-net.com

Casa de Bender