D Eloquence Library
idb_delete(base,dset,mode,status) int base; void *dset; int mode; int statusThe parameters are:
* a pointer to a character array containing up to 16 characters (bytes) that specifies the data set name. The data set name must be terminated with a semicolon, a blank or 0 character if it is less than 16 characters.
If the entry being deleted is part of a chain, all links are automatically maintained. If the entry is the last entry in a chain and the chain is linked to an automatic master, the entry in the automatic master is deleted unless it is linked to any other chains. An entry in a manual master can only be deleted if all linked child entries are deleted first.
Idb_delete does not affect the current chain or the chain information in the status parameter.
 = S_OK  = 0  = record length  = backward address  = 0  = 0  = record number  = forward address  = 0  = 0 if a detail set, 1 if master set
if(idb_delete(dbid,"CUSTOMER",1,status)) error_handler();This will delete the current record from the CUSTOMER data set.