150
CipherLab BASIC Programming Part I
DEL_TRANSACTION_DATA
Purpose To remove a block of transaction data from the first (= default) transaction file.
Syntax DEL_TRANSACTION_DATA(N%)
Remarks “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(-1)
END IF
See Also DEL_TRANSACTION_DATA_EX, EMPTY_TRANSACTION