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