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

SUMMARY
   d_setom(O_SET,M_SET [,dbn])
   int O_SET;
   int M_SET;
   int dbn;

ARGUMENTS

   O_SET       The set type whose current owner will be assigned from the
               current member of M_SET.

   M_SET       The set type whose current member will be become the current
               owner of O_SET.

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

DESCRIPTION
   This function assigns as current owner of O_SET from the current member of
   M_SET. The current member of M_SET must be a legal owner of O_SET.
   The current member of O_SET will become NULL_DBA.

CURRENCY CHANGES
   curr_own[O_SET] = curr_mem[M_SET];
   curr_mem[O_SET] = NULL_DBA;

RETURN CODES

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

   -18    S_INVOWN      Current member of M_SET is not legal owner of
                        O_SET.


EXAMPLE
    /*disconect and delete interect and (possibly) key word */
    d_setom(INFO_TO_KEY,HAS_PUBLISHED);
    while (d_findnm(INFO_TO_KEY) == S_OKAY)
     {
      d_discon(INFO_TO_KEY);
      d_setmr(KEY_TO_INFO);
      d_discon(KEY_TO_INFO);
      d_delete();
      d_members(KEY_TO_INFO,&count);
      if (count == 0L)
         {
          /* delete key word */
          d_setro(KEY_TO_INFO);
          d_delete();
         }
     }

See Also: d_setmm d_setmr d_setmo d_setoo d_setor

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