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

SUMMARY
   d_recset(REC[,dbn])
   int REC;
   int dbn;

ARGUMENTS
   REC         The record type for which the current occurrence is to be set.

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

DESCRIPTION
   This function sets the current occurrence of the record to the current
   record. This function is usefull if you wish to perform sequential record
   scans (via d_recnext or d_recprev) from the current record regardless of
   how the current record was estabilished.

CURRENCY CHANGES
   None;

RETURN CODES

   -3     S_INVREC      Current record is not in the same file that
                        contains REC.

EXAMPLE

    /* Scan sequentially from key, starting with key */
    d_keyfind(INFO_TYPE,&info_key);
    for (d_recset(INFO);db_status == S_OKAY; d_recnext()) {
         d_recread(&info);
            print_record(&info);
    }

See Also: d_recnext d_recprev d_recfrst d_reclast

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