151
DEL_TRANSACTION_DATA_EX
Purpose To remove a block of transaction data from a specified transaction file.
Syntax DEL_TRANSACTION_DATA_EX(file%, N%)
Remarks “file%
” is an integer variable in the range of 1 to 6, indicating which transaction
file the command is to affect. These commands work the same –
DEL_TRANSACTION_DATA_EX(1, N%)
DEL_TRANSACTION_DATA(N%)
“N%” is
an integer variable, determining how many transaction records to be
deleted and how to delete.
If “N%” is a positive
integer, the specified number of records will be
deleted from the top of the transaction file 1. That is, the oldest records will
be deleted.
If “N%” is a negative
integer, the specified number of records will be
deleted from the bottom of the transaction file 1. That is, the latest records
will be deleted.
Example
…
PRINT “Discard the latest transaction? (Y/N)”
…
Loop:
KeyData$ = INKEY$
IF KeyData$ = “” THEN
GOTO Loop
ELSE IF KeyData$ = “Y” THEN
DEL_TRANSACTION_DATA_EX(TransFile%, -1)
END IF
See Also DEL_TRANSACTION_DATA, EMPTY_TRANSACTION_EX