D_KEYDEL
SUMMARY
d_keydel(FIELD[,dbn])
long FIELD;
int dbn;
ARGUMENTS
FIELD The field type of the optionak key field for which the value is
to be deleted.
dbn (optional) The number of the database containing the record.
DESCRIPTION
Function d_keydel deletes the key entry associated with the current record's
optional key FIELD.
CURRENCY CHANGES
None.
RETURN CODES
2 S_NOTFOUND Optional key value not found.You probably did not call
d_keystore to originally store the key.
-5 S_INVFLD Invalid field type.You either did not pass a field type
or you passed a field type which is not current record.
-24 S_NOTLOCKED Set type is not locked.
-27 S_TRNOTACT Transaction not active.In shared mode,changes can only
be made from within a transaction.
-37 S_NOTOPTKEY Specified field type is not defined as an optional key.
-38 S_BADFIELD Specified field type not defined in current record.
EXAMPLE
if (d_keyfind(EMP_ID,"8505"))==S_OKAY)
{
/* upgrade employee to manager */
d_keydel(EMP_ID);
d_keystore(MGR_ID);
}