version 1.5
OD Delete in context (context_ID) Integer
| Parameter | Type | Description | |
| context_ID | Longint | Context identifier | |
| Function result | Integer | Error code | |
| 1 = the operation is successful | |||
| 0 = the record has already been deleted | |||
| -1 = an error occurs |
Description
The OD Delete in context function deletes the current row of the context on the Oracle server.
context_ID must be a previously created and active context identifier.
When the current row is deleted, the next row becomes the current row if it exists, and the previous row becomes the current row if the next row does not exist. If there are no more rows after the deletion, the current row is no longer defined.
The number of rows and the current row number do not change after OD Delete in context is called, but the row on the Oracle server is physically deleted. If you try to load a previously deleted row with OD Next in context, OD Previous in context, or OD Goto in context, 4D for Oracle will return an error.
OD Delete in context sends a SQL query of the DELETE WHERE type.
OD Delete in context returns 1 if it succeeds, 0 if the row has already been deleted and -1 if an error occurs.
See Also
OD Insert in context, OD Update in context.