Navigation:  Reference > Functions >

Deleted()

Print this Topic Previous pageReturn to chapter overviewNext page

DELETED(1)

 

PURPOSE

This function will determine whether or not the active record is marked as deleted or not.

 

PARTS

 

1 f/c/eRequired - The file number/handle to be checked.

 

RETURN TYPE - L

If the record is marked as deleted the function will return .F.; otherwise it will return .T.

 

COMMENTS

This function works only with CodeBase files.  When a record is deleted it is still in the active records.  It is deleted from all the indexes so if you search for records via one of the indexes you'll never see a deleted record.  However, if you search through the file using index 0 (@0), or the record number instead of an index, you will see all the records, included those that have been deleted.  Through the use of this function you can test for those easily and just ignore the ones that return True.

 

NOTE:  If you test for deleted records in a Btrieve file this function will always return False.

 

See Also REC_DEL()

 

NOTE: for some reason the original creator of TAS Professional made a change in the system and created this function so for compatibility we have added both DELETED() and the REC_DEL() there is a deference on the two functions. the deleted() return a .F. and the REC_DEL() returns a .T. This move on our part to do this is for compatibility reasons only.  

 


Page url: http://www.cassoftware.com/tas/manual/deleted().htm