EssGetMemberInfo

Gets a structure containing information about a specific member in the active database outline.

Syntax

ESS_FUNC_M EssGetMemberInfo (hCtx, MbrName, ppMbrInfo);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle.

MbrName

ESS_STR_T

Member name.

ppMbrInfo

ESS_MEMBERINFO_T

Address of pointer to receive allocated member information structure.

Notes

Return Value

If successful, this function returns an allocated member information structure, ppMbrInfo. If a member has no parent, this function returns an empty string in the ParentMbrName field of the ESS_MEMBERINFO_T structure.

Access

This function requires the caller to have at least read access (ESS_PRIV_READ) to the database, and to have selected it as their active database using EssSetActive().

Example

ESS_FUNC_M
ESS_GetMbrInfo (ESS_HCTX_T  hCtx,
                ESS_HINST_T hInst
               )
{
   ESS_FUNC_M         sts = ESS_STS_NOERR;
   ESS_MEMBERINFO_T  *pMbrInfo = NULL;
   sts = EssGetMemberInfo(hCtx, "Profit",
                &pMbrInfo);
   if (!sts)
   {      
      if (pMbrInfo)
      {
         EssFreeStructure(hCtx, structId, count, structPtr);
      }
   }
   return (sts);
}

See Also