EssCheckMemberName

Checks if a string is a valid member name within the active database outline.

Syntax

ESS_FUNC_M EssCheckMemberName (hCtx, MbrName, pValid);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle.

MbrName

ESS_STR_T

Member name to be verified.

pValid

ESS_PBOOL_T

Address of variable to receive valid member flag. Set to TRUE if member is valid.

Notes

This function checks whether the relational span Boolean is set and can determine if the specified member name is valid in the relational store.

Return Value

If successful, this function returns a flag, pValid, indicating if the name string MbrName is a valid member name in the active database outline.

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_CheckMemberName(ESS_HCTX_T hCtx) 
{
   ESS_FUNC_M     sts;
   ESS_STR_T      MbrName;
   ESS_BOOL_T     pValid; 
   
   MbrName = "Profit";
   sts = EssCheckMemberName(hCtx, MbrName, &pValid);
   
   if(pValid) 
      printf("\"%s\" is a valid member name\n",
      MbrName);
   
   return (sts);
}

See Also