DBaddMemberElementBySetname

Top  Previous  Next

Adds to a master Member connection an other Member.

For this procedure the master object must be confessed, as well as the name of the linking. However, it is not necessary that the element of the master linking is known. Then the routine looks in the master object for the master Member linking with this name and tests whether the given Member element is not yet Member of this linking. If it is not yet a member, it is added. If the linking does not exist at all or is the new object already Member of the given linking, ZERO is returned as a token for an appeared mistake.

Parametre

POBJECT master IN

Act of the master object to which the object Member should be bound.

POBJECT member IN

Act of the object, as a Member in the linking setname to the master object master it should be attached.

char *setname IN

Name of the linking between master and member.

Result

PMEMBER_ELEMENT OUT

If is the trading of the element which has been inserted in the Member object to realise the master Member connection. If a mistake has appeared, ZERO is delivered, instead, as a result.

Declaration

#include "database.h“

 

PMEMBER_ELEMENT DLLENTRY DBaddMemberElementBySetname (

POBJECT master,

POBJECT member,

char *setname

);