User`s guide

150
CipherLab BASIC Compiler
User's Guide
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 variable in the range of 1 to 6, indicating which transaction file
to access. The command SAVE_TRANSACTION_EX(1,data$) works the same as
the command 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."
RETURN
See Also
GET_TRANSACTION_DATA_EX$, SAVE_TRANSACTION,
UPDATE_TRANSACTION_EX
TRANSACTION_COUNT
Purpose
To get the total number of transaction records saved in the first (default) transaction
file.
Syntax
A% = TRANSACTION_COUNT
Remarks
"A%" is an integer variable to be assigned to the result.
Example
...
DataCount:
DataCount% = TRANSACTION_COUNT
CLS
PRINT DataCount%, "Transaction data is saved."
RETURN
...
See Also
TRANSACTION_COUNT_EX