DELETE

DELETE


DELETE Index Level DIM
Syntax DELETE {file.variable}, id.expression {on.error.clause}
Category BASIC
Type Statement
Description removes a specific item from a file.

The on.error.clause, which consists of the text "on error" followed by a statement list, is taken if the update fails to due to a lost network connection or a callx that executes an "inputerr" statement.

See the "delete" function for deleting an element of an array.
Options
See Also file.variable default file variables statements & functions id.expression INPUTERR DELETE
Example open 'customer' to customer.file else stop 201,'customer'
input customer.id
crt 'are you sure? ':
input ans
if ans = 'yes' then delete customer.file,customer.id

This program deletes a specific item from the "customer.file".  "yes" is the only valid answer to perform the delete.
Warnings
Compatibility D3 7.0 AP R83
DELETE Index Level DIM