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

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

ARGUMENTS
   M_SET       The set type to which the current member will be assigned
               from the current owner of O_SET.

   O_SET       The set type from which the current owner will be copied to
               the current member of M_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 owner of O_SET must be a legal member of M_SET
   and must be connected to an M_SET occurrence.

CURRENCY CHANGES
   curr_mem[TO_SET] = curr_ownm[O_SET];
   curr_own[TO_SET] = owner of curr_mem[O_SET] via M_SET.

RETURN CODES

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

   -8     S_NOCO        The current owner is null.

   -16    S_NOCOT       The current owner of O_SET is not connected to an
                        occurrence of M_SET.

   -19    S_INVMEM      The current owner of O_SET is not legal member of
                        M_SET.


EXAMPLE
    long count;
    ...
    /* delete author , if he has no pubs. */
    d_members(HAS_PUBLISHED,&count);
    if(count == 0L)
     {
       d_setmo(AUTHOR_LIST,HAS_PUBLISHED);
       d_dicon(AUTHOR_LIST):
       d_delete();
      }

See Also: d_setmm d_setmr d_setom d_setor

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