DBaddMemberElement

Top  Previous  Next

Add of an object for a set linking.

An object is inserted in the set linking as a Member. If still no Member exist, this object becomes the first Member. If as a result ZERO zurückgeliefert becomes, can be determined with the help of the mistake code of what the appendices have failed because. As possible mistake codes are possible:

MOSKITO_ERROR_OBJECT_ALREADY_SETMEMBER

The object already exists as a Member.

MOSKITO_OUT_OF_MEMORY

Not enough memories at the possession to take up new object.

Parametre

object (POBJECT) [IN]

A new Member object is inserted in the set linking set.

set (PSET_ELEMENT) [IN]

The existing set linking is extended by an object as a Member. The trading must point at a valid master Member linking.

Result

(PMEMBER_ELEMEMT) [OUT]

By successful implementation a new Member element is returned. Otherwise becomes ZERO zurückgeliefert and one can investigate with the help of the mistake code, why the function missed.

Declaration

#include "database.h"

 

PMEMBMER_ELEMENT DLLENTRY DBaddMemberElement (

POBJECT object,

PSET_ELEMENT set

);

Constants

MOSKITO_ERROR_OBJECT_ALREADY_SETMEMBER

MOSKITO_OUT_OF_MEMORY

Related functions

DBaddMasterElement

DBaddSet