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

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

ARGUMENTS

   SET         The set type for which the current record will be assigned
               from the current owner.

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

DESCRIPTION
   This function assigns the current owner of SET from the current record.
   The current record must be a legal owner of SET. The current member of SET
   will become the NULL.

CURRENCY CHANGES
   curr_own[SET] = curr_rec;
   curr_own[SET] = NULL.

RETURN CODES

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

   -18    S_INVOWN      Current record is not a legal owner of SET.



EXAMPLE
    /*list "database technology" publications */
    if (d_keyfind(WORD,"database technology") == S_OKAY)
      {
        d_setor(KEY_TO_INFO);
        while (d_findnm(KEY_TO_INFO) == S_OKAY)
              {
               d_findco(INFO_TO_KEY);
               d_recread(&irec);
               pr_info();
              }
       }

See Also: d_setmm d_setmo d_setmr d_setom d_setoo

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