SUMMARY d_setmm(TO_SET,FR_SET [,dbn]) int TO_SET; int FR_SET; int dbn;
ARGUMENTS TO_SET The set type to which the current member will be assigned from the current member of FR_SET.
FR_SET The set type from which the current member of TO_SET will be assigned.
dbn (optional) The number of the database containing the record.
DESCRIPTION This function assigns as current member of TO_SET the current member of FR_SET. The current member of FR_SET must be a legal meber of TO_SET which is also connected to a TO_SET occurrence. The current owner of TO_SET will become the new member's owner.
CURRENCY CHANGES curr_mem[TO_SET] = curr_mem[FR_SET]; curr_own[TO_SET] = owner of curr_mem[FR_SET] via TO_SET.
RETURN CODES
-2 S_INVSET Invalid set type. Probably passed a record or field type instead of set type.
-16 S_NOCOT The current member of FR_SET is not connected to an occurrence of TO_SET.
-19 S_INVMEM The current member of FR_SET is not legal member of TO_SET.
EXAMPLE
/* print key words associates with tech.info */ while (d_findnm(INFO_TO_KEY)==S_OKAY) { d_setmm(KEY_TO_INFO,INFO_TO_KEY); d_csoread(INFO_TI_KEY,WORD,key); printf("%s\n",key); }