## EssPartitionGetAreaCellCount

Description

Returns the number of cells in the specified slice string.

Syntax

ESS_FUNC_M EssPartitionGetAreaCellCount (hCtx, pszSlice, pdCount);

ESS_HCTX_T | hCtx;
ESS_STR_T | pszSlice;
ESS_PDOUBLE_T | pdCount;

Parameters

hCtx | Essbase API context handle.
pszSlice | Input slice definition to be checked.
pdCount | Returns number of cells here.

Return Value

Returns zero if successful; error code if unsuccessful.

Example

    ESS_STS_T ESS_PartitionGetAreaCellCount(ESS_HCTX_T hCtx)
    {
       ESS_STS_T    sts = ESS_STS_NOERR;
       ESS_DOUBLE_T pdCount;
       ESS_STR_T    pszSlice;

       pszSlice = "@IDESC(East)";

       sts = EssPartitionGetAreaCellCount(hCtx, pszSlice, &pdCount);

       if (!sts)
       {   printf("EssPartitionGetAreaCellCount  sts: %ld\n",sts);
           printf("\tArea cell count = %g \n",pdCount);	 }

       return(sts);
    }

See Also

Constant and Structure Definitions for Partitions
EssPartitionApplyOtlChangeFile()
EssPartitionApplyOtlChangeRecs()
EssPartitionCloseDefFile()
EssPartitionFreeDefCtx()
EssPartitionFreeOtlChanges()
EssPartitionGetList()
EssPartitionGetOtlChanges()
EssPartitionGetReplCells()
EssPartitionNewDefFile()
EssPartitionOpenDefFile()
EssPartitionPurgeOtlChangeFile()
EssPartitionPutReplCells()
EssPartitionReadDefFile()
EssPartitionReadOtlChangeFile()
EssPartitionReplaceDefFile()
EssPartitionResetOtlChangeTime()
EssPartitionValidateDefinition()
EssPartitionWriteDefFile()