basic.delete.statement Statement/BASIC Program

basic.delete.statement

Command basic.delete.statement Statement/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
Description removes a specific item from a file.

See the "delete" function for deleting an element of an array.
Syntax delete {file.variable}, id.expression
Options
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.
Purpose
Related basic.file.variable
basic.default.files
basic.statements
basic.id.expression
basic.delete.function