EssDefaultCalc

Executes the default calculation for the active database.

Syntax

ESS_FUNC_M EssDefaultCalc (hCtx);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle.

Notes

Return Value

None.

Access

This function requires the caller to have calc privilege (ESS_PRIV_CALC) to the active database.

Example

ESS_FUNC_M
ESS_CalcDefault  (ESS_HCTX_T          hCtx)
{
   ESS_FUNC_M           sts = ESS_STS_NOERR;
   ESS_PROCSTATE_T   pState;
   
   sts = EssDefaultCalc(hCtx);
   if (!sts)
   {
      sts = EssGetProcessState (hCtx, &pState);
      while (!sts && (pState.State != 
              ESS_STATE_DONE))
            sts = EssGetProcessState (hCtx,
                  &pState);
   } 
   
  return (sts);
}

See Also