D_SETRO

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

ARGUMENTS

SET The set type whose current owner will be assigned as current
record.

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

DESCRIPTION
This function assigns the current record from the current owner of SET.

CURRENCY CHANGES
curr_rec = curr_own[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.



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();
}
}