228
CipherLab BASIC Programming Part I
READ
Purpose To read the top most record of a specified transaction file.
Syntax A$ = READ
A$ = READ file%
Remarks
The command READ will read the top most record of the first transaction file,
which is the default one.
“A$” is a string varia
ble to be assigned to the result; it may be the desired data
string if the command is successfully processed.
Otherwise, it may have one of the values as follows:
OVER
NAK
There is no data in the transaction file.
Any format error occurs.
“file%
” is an integer variable in the range of 1 to 6, indicating of which
transaction file the record is to be read.
Example
READ1
' to read a record from the first transaction file
REMOVE
Purpose To delete one record from the top of a specified transaction file.
Syntax A$ = REMOVE
A$ = REMOVE file%
Remarks
The command REMOVE will delete one record from the top of the first
transaction file, which is the default one.
“A$” is a string variable to be assigned to the result.
NEXT
OVER
NAK
The command is processed successfully.
There is no more data.
Any format error occurs.
“file%
” is an integer variable in the range of 1 to 6, indicating of which
transaction file the record is to be deleted.
Example
' to delete a record from the 2nd transaction file
TR
Purpose To get the current system time.
Syntax A$ = TR
Remarks
“A$
” is a string variable to be assigned to the result, which is in the form of
“yyyymmddhhnnss”.
Otherwise, it returns NAK for any format error.
Example
TR