ENABLE Reference Manual

ENABLE ATTRIBUTES
DELETE Attribute
DELETE Attribute
The DELETE attribute indicates whether the application can, or
cannot, delete records from the file that a box represents. The
syntax for the DELETE attribute is:
-----------------------------------------------------------------
| |
| DELETE { ON } |
| { OFF } |
| |
| ON |
| |
| indicates that the application can delete records from the |
| data base file. |
| |
| OFF |
| |
| indicates that the application cannot delete records from |
| the data base file. |
| |
| The starting value of the DELETE attribute is ON. |
| |
-----------------------------------------------------------------
Considerations
If the value of DELETE is ON, the value of the READ attribute
must also be ON. ENABLE imposes this restriction because an
application must read a record before that record can be deleted.
An application cannot delete records from entry-sequenced or
unstructured files. If DELETE is set to ON for a box that
represents such a file, ENABLE sets DELETE to OFF when the box is
added, and issues a warning message.
4-15