The information in this article applies to:
SUMMARY
The DELETE command does not physically remove a record from the
database file. Instead, it places a flag on the record indicating that
the record has been deleted. The record can be retrieved by issuing
the RECALL command.
MORE INFORMATION
The following code snippets blank out all fields in the record when a
record is deleted from the file. When an attempt is made to append a
new record to the database, the program first checks to see if any
blank deleted records are available. If a deleted record is available,
the program uses the record to store the new data. If a deleted record
is not available, the program appends a blank record.
This code snippet deletes a record in FoxPro:
The following line must be added to a FoxBASE+ or FoxPro 1.02 program
for databases that contain memo fields:
This code snippet either recycles a deleted record or appends a new
blank record in FoxBASE+ and FoxPro:
Unused space in memo files will not be recycled. To recover unused
space in memo files, you must issue a PACK (FoxBASE+) or PACK MEMO
(FoxPro) command.
REFERENCESMicrosoft FoxPro "Commands & Functions," pages 134, 315, and 580 Additional query words: VFoxWin FoxMac FoxDos FoxWin 2.x multiuser
Keywords : FxprgMultiuser |
Last Reviewed: August 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |