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

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

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

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

DESCRIPTION
   This function finds last 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]=last member;
   curr_rec=last 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_findnm d_findpm

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