D_SETMR

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

ARGUMENTS

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

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

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

CURRENCY CHANGES
curr_mem[SET] = curr_rec;
curr_own[SET] = owner of curr_rec via SET.

RETURN CODES

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

-8 S_NOCR The current record is null.

-16 S_NOCOT The current record is not connected to an occurrence
of SET.

-19 S_INVMEM The current owner of O_SET is not legal member of
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();
}
}