154
CipherLab BASIC Programming Part I
SAVE_TRANSACTION
Purpose To save (append) a transaction record to the first (= default) transaction file.
Syntax SAVE_TRANSACTION(data$)
Remarks “data$
” is a string variable, representing the string to be saved in the first
(default) transaction file.
Example
ON READER(1) GOSUB BcrData_1
…
BcrData_1:
Data$ = GET_READER_DATA$(1)
PRINT Data$
SAVE_TRANSACTION(Data$)
IF GET_FILE_ERROR <> 0 THEN PRINT “Transaction not saved.”
See Also GET_TRANSACTION_DATA$, SAVE_TRANSACTION_EX, UPDATE_TRANSACTION
SAVE_TRANSACTION_EX
Purpose To save (append) a transaction record to a specified transaction file.
Syntax SAVE_TRANSACTION_EX(file%, data$)
Remarks “file%” is an integer va
riable in the range of 1 to 6, indicating which transaction
file to access. These commands work the same –
SAVE_TRANSACTION_EX(1,data$)
SAVE_TRANSACTION(data$)
“data$
” is a string variable, representing the string to be saved in the specified
transaction file.
Example
ON READER(1) GOSUB BcrData_1
…
BcrData_1:
BEEP(2000, 5)
Data$ = GET_READER_DATA$(1)
PRINT Data$
SAVE_TRANSACTION_EX(TransFile%, Data$)
IF GET_FILE_ERROR <> 0 THEN PRINT “Transaction not saved.”
See Also
GET_TRANSACTION_DATA_EX$, SAVE_TRANSACTION,
UPDATE_TRANSACTION_EX