![]() ![]() |
|
DELETEThe DELETE statement is used to delete a record from a jBASE file.
COMMAND SYNTAXDELETE {variable,} expression {SETTING setvar} {ON ERROR statements}
SYNTAX ELEMENTSIf specified, variable should have been the subject of a previous OPEN statement. If variable is omitted then the default file variable is assumed. The expression should evaluate to the name of a record stored in the open file. If the SETTING clause is specified and the delete fails, setvar will be set to one of the following values: Incremental File Errors
NOTESThe statement will have no effect if the record name does not exist within the file. If a lock was being held by the program against the file record, then the lock will be released.
EXAMPLES
will delete the record "record1" from the file DAT1. |