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

SUMMARY
   d_gtscr(ts[,dbn])
   ULONG *ts;
   int dbn;

ARGUMENTS

   ts        Pointer to a ULONG (unsigned long) variable to contain
             timestamp value.

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


DESCRIPTION
   Function d_gtscr copies the last access timestamp for the current
   record into the unsigned long variable pointer to by ts.

--------------------------------------------------------------------------
Note:
   This function should be used with function d_crget to save the curent
   record's database address and last access timestamp, for those record
   types whitch are timestamped.
--------------------------------------------------------------------------

CURRENCY CHANGES
   None

RETURN CODES

   -7   S_NOCR         The current record is null.

   -41  S_TIMESTAMP    The current owner record type is not timestamped.

EXAMPLE

    ..

   DB_ADDR dba;
   ULONG   ts ;

   /* save current record for( lates retrievial */
   d_crget(&save_dba);
   d_gtscr (&ts);
    ..
   /* later - retrieve saved record */
   d_crset(&save_dba);
   d_stscr(&ts);
   if (d_crstst() == S_OKAY)
      d_recread(&irec);
    ..

See Also: d_crget d_crset d_gtscm d_gtsco d_stscm d_stsco

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