User`s guide
Chapter
5
BASIC
Command
s
159
Syntax
UPDATE_RECORD(file%, index%, data$)
Remarks
"file%" is an integer variable in the range of 1 to 5, indicating which DBF file to be
accessed.
"index%" is an integer variable in the range of 1 to 3, indicating which IDX file to
be accessed. If it is not specified, the default IDX file which keeps the original data
sequence will be used.
"data$" is a string variable, representing the character string to replace the old data.
Example
ON COM(1) GOSUB HostCommand
...
HostCommand:
Cmd$ = READ_COM$(1)
CmdIdentifier$ = LEFT$(Cmd$, 1)
DBFNum% = VAL(MID$(Cmd$, 2, 1))
IDXNum% = VAL(MID$(Cmd$, 3, 1))
CardID$ = RIGHT$(Cmd$, LEN(Cmd$)-3)
IF CmdIdentifier$ = "&" THEN
UPDATE_RECORD(DBFNum%, IDXNum%, CardID$)
ELSE
...
See Also
GET_RECORD$
5.20.3 Error Code
The command GET_FILE_ERROR returns the error code, which is a number that indicates
the result of the last file manipulation. A value other than 0 indicates error.
GET_FILE_ERROR
Purpose
To get the error code of the previous file manipulation command.
Syntax
A% = GET_FILE_ERROR
Remarks
"A%" is an integer variable to be assigned to the result.
If there is no error, it returns 0.
If it returns a value other than 0, possible error code and its interpretation will be
listed as follows.