Set boolean member within data object. The object must be initialized to a data class, and the supplied member must exist within that class and be of datatype BOOL or TBOOL

Return TypeFunction nameArguments
hzEcodehdbObject::SetBool(hdbMember*,bool,)

Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp

Function Logic:

0:START 1:unknown 2:items 3:unknown 4:Return hzerr(E_NOINIT,Single object container not init to a data class) 5:unknown 6:Return hzerr(E_ARGUMENT,No member supplied) 7:unknown 8:Return hzerr(E_CORRUPT,Member %s does not belong to class %s,pMbr->txtName(),m_pClass->txtName()) 9:unknown 10:m_pRoot 11:Return m_pRoot->SetBool(pMbr,bValue)

Function body:

hzEcode hdbObject::SetBool (hdbMember* pMbr)bool bValue, 
{
   //  Set boolean member within data object. The object must be initialized to a data class, and the supplied member must exist within that class and be of datatype BOOL or TBOOL 
   //  
   //  Arguments: 1) pMbr The member
   //     2) bValue The boolean value the member will be set to
   //  
   //  Returns: E_NOINIT If the object has not been initialized to a class
   //     E_ARGUMENT If no member is supplied
   //     E_CORRUPT If the supplied member number does not identify an object class member.
   //     E_TYPE  If the object class member is not atomic (is another class) or if the supplied atom has the wrong type.
   //     E_OK  If the object class member has been set to the supplied atom value.
   _hzfunc("hdbObject::SetBool") ;
   if (!this)      hzexit(E_CORRUPT, "No instance") ;
   if (!m_pClass)  return hzerr(E_NOINIT, "Single object container not init to a data class") ;
   if (!pMbr)      return hzerr(E_ARGUMENT, "No member supplied") ;
   if (pMbr->Class() != m_pClass)
       return hzerr(E_CORRUPT, "Member %s does not belong to class %s", pMbr->txtName(), m_pClass->txtName()) ;
   if (!m_pRoot)
       m_pRoot = _obj_data::GetInstance(m_pClass) ;
   return m_pRoot->SetBool(pMbr, bValue) ;
}