156
CipherLab BASIC Programming Part I
UPDATE_TRANSACTION
Purpose To update a transaction record in the first (= default) transaction file.
Syntax UPDATE_TRANSACTION(N%, data$)
Remarks “N%” is an intege
r variable, indicating the ordinal number of the transaction
record to be updated.
“data$
” is a string variable, representing the character string to replace the old
data.
Example
…
UpdateTransaction:
UPDATE_TRANSACTION(Num%, NewData$)
RETURN
See Also GET_TRANSACTION_DATA$, SAVE_TRANSACTION, UPDATE_TRANSACTION_EX
UPDATE_TRANSACTION_EX
Purpose To update a transaction record in a specified transaction file.
Syntax UPDATE_TRANSACTION_EX(file%, N%, data$)
Remarks
“file%
” is an integer variable in the range of 1 to 6, indicating which transaction
file to access. These commands work the same –
UPDATE_TRANSACTION_EX(1, N%, data$)
UPDATE_TRANSACTION(N%, data$)
“N%” is an integer variable, indicating the ordinal numb
record to be updated.
“data$
” is a string variable, representing the character string to replace the old
data.
Example
…
UpdateTransaction_1:
UPDATE_TRANSACTION_EX(1, Num%, NewData$)
RETURN
See Also GET_TRANSAC
TION_DATA_EX$, SAVE_TRANSACTION_EX,
UPDATE_TRANSACTION