For files opened I/O with random or dynamic access, the Btrieve file position indicator has to be moved to the position of the record to be deleted. After performing the DELETE operation, the file position indicator is restored to its original position, although this could fail if the record to re-position on has been deleted.
This problem does not occur for files with sequential access because the file position indicator is already on the record to be deleted and so re-positioning is not necessary.