
D Eloquence Library
idb_delete(base,dset,mode,status) int base; void *dset; int mode; int status[10]The 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.
       [0] = S_OK    [6] = 0
       [1] = record length   [7] = backward address
       [2] = 0     [8] = 0
       [3] = record number   [9] = forward address
       [4] = 0
       [5] = 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.