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

SUMMARY
   d_findpm(SET[,dbn])
   int SET;
   int dbn;

ARGUMENTS
   SET         Set type for which the previous member is to be found.

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

DESCRIPTION
   This function finds previous member of the current owner of SET. The current
   member of SET and the current record will be set to the found record.Status
   S_EOS is returned if there are no members in the set.


CURRENCY CHANGES
   curr_mem[SET]=previous member (NULL_DBA when S_EOS);
   curr_rec=previous member;


RETURN CODES
    1    S_EOS          Set is empty.

   -2    S_INVSET       Invalid set type. Probably passed a record or
                        field type instead of a set type.

   -8    S_NOCO         The current owner is null.

   -24   S_NOTLOCKED    Set type is not locked.


EXAMPLE

    /* print author list in descending order  */
    for (d_findlm(AUTHOR_LIST);db_status==S_OKAY;d_findpm(AUTHOR_LIST)
     {
      d_crread(NAME,name);
      printf ("author %s \n",name);
     }

See Also: d_findco d_findfm d_findlm d_findnm

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