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_crset http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_CRSET

SUMMARY
   d_crset(dba[,dbn]
   DB_ADDR *dba;
   int dbn;

ARGUMENTS
   dba         Pointer to a BD_ADRR variable to receive the database address
               of the current record.

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

DESCRIPTION
   This function assigns the current record from the database address variable
   pointed to by dba.It is used inconjuction with the d_crget function for
   saving and restoring the current record.

--------------------------------------------------------------------------
Note:
   If the record type of the current record is timestamped, you should also
   call function d_stscr to set the last access timestamp for the record.
--------------------------------------------------------------------------

CURRENCY CHANGES
   curr_rec=*dba

RETURN CODES
   -6    S_INVADDR      Invalid database address.You may have passed
                        the database address itself rather than pointer to it.

EXAMPLE
   DB_ADDR save_dba;
    ..
   /* save current record for later retrievial */
   d_crget(&save_bda)
    ..
   /* later, retrieve saved record */
   d_crset(&save_dba);
   d_recread(&irec);
    ..

See Also: d_crget d_csoget d_csoset d_csmset d_csmget d_gtscm

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