Using VPLUS: An Introduction to Forms Design (32209-90004)
7-37
.
Figure 7-29. Browse Mode, Record No. 1
DELETE RECORDS FROM BATCH FILE
To delete a record from the batch file, you must be in Browse mode.
Then, you locate the record to be deleted and press DELETE REC. The
record is effectively deleted from the batch file and can no longer be
referenced. This means if you try to view it in Browse mode, it is
skipped. Furthermore, the space in the file that was occupied by the
deleted records is no longer available. You cannot delete a record and
then insert a new record in that location; all new records are added to
the end of the batch file.
In our example, anywhere from three to nine records may comprise a single
order depending on the number of records generated from the repeating
form. Thus, if you want to delete an order, you must delete all the
records in the order. You can, of course, delete single records from an
order, but if the deleted record affects the total price, you must then
manually change this total on the last form of the order and then press
ENTER to record the changed total.
Since in most cases you want to delete an entire order rather than a
single record in that order, this exercise gives an example that deletes
order number 100001, the first order in the current batch file.