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

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

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

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

DESCRIPTION
   This function finds owner in SET of the current record. The current
   member of SET will be set from the current record. Both the current owner
   of SET and the current record are set to the found record.

--------------------------------------------------------------------------
Note:
   If you're not sure whether or not the current record is connected to SET
   call function d_ismember first to check. Then,if it is connected, call
   d_findco to retrieve the owner. This will prevent the S_NOTCON error
   cde return.
--------------------------------------------------------------------------

CURRENCY CHANGES
   curr_own[SET]=current record's owner through SET;
   curr_mem[SET]=curr_rec;
   curr_rec=current record's owner through SET;


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

   -7    S_NOCR         The current record is null.

   -6    S_INVADDR      Invalid database address.You may have passed
                        the database address itself rather than a
                        pointer to it.

   -16   S_NOTCON       Current record not connected to SET.

   -19   S_INVMEM       Current record type not valid member of SET.

   -24   S_NOTLOCKED    Set type is not locked.


EXAMPLE

    /* print key words associated with tech. info  */
    while (d_findnm(INFO_TO_KEY)==S_OKAY)
     {
      d_findco(KEY_TO_INFO);
      d_crread(WORD,key)
      printf ("%s\n",key);
     }

See Also: d_findfm d_findlm d_findnm d_findpm

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