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

SUMMARY
   d_members(SET,count[,dbn])
   int SET;
   long *count;
   int dbn;

ARGUMENTS
   SET         The set type for which the current membership count is to
               be returned

   count       A pointer to a long integer variable to receive the total
               member count

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

DESCRIPTION
   Function d_members copies the count of the total number of members for
   the current owner of SET into the long integer pointer yo be count.


-------------------------------------------------------------------

CURRENCY CHANGES
   None

RETURN CODES

   -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        Record type is not locked.

EXAMPLE

      char name[23]; /* author name */
      long num;           /* number of pubs */

      ..
      /* Print list of authors with total number of
         associated publications in database       */
     for(d_findfm(AUTHOR_LIST);db_status==S_OKAY;
                   d_findnm(AUTHOR_LIST)){
          d_crread(NANE,name);
          d_setor(HAS_PUBLISHED);
          d_members(HAS_PUBLISHED,&num);
          printf("author %s has %old publcations on file\n",
                  name,num);
       }

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