Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_delete http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_DELETE

SUMMARY
   d_delete([dbn])
   int dbn;

ARGUMENTS
   dbn         (optional)The number of the database containing the record

DESCRIPTION
   This function deletes the current record from the database.All keys
   associated with the record are removed from their respective key file and
   the record is marked deleted and placed on the deleted chain for the file
   in which it resides. The record must have been previously removed from all
   sets of which it is an owner or memeber.

CURRENCY CHANGES
   curr-rec=NULL_DBA;

RETURN CODES

    -7   S_NORC        The current record is null.

    -12  S_HASMEM      Current record is an owner of more non-empty sets.You
                       must first disconect all members from all sets owned by
                       the current record.

    -13  S_ISMEM       Current record is a member of one or more sets.You must
                       first disconect the record from all sets in which it is
                       a member.

    -22  S_DELSYS      The current record is the system record.You are not
                       aloowed to delete the system record.

    -24  S_NOTLOCKED   Record type containing field is not locked

    -27  S_TRNOTACT    Transaction not active.In shared mode,changes can
                       only be made from within a transaction.


EXAMPLE
     .....
     /* disconect and delete abstract  */
     d_setom(ABSTRACT,HAS_PUBLISHED);
     while (d_findfm(ABSTRACT)==S_OKAY)
      {
        d_discon(ABSTRACT);
        d_delete();
      }

See Also: d_disdel

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson