EssSetDefaultCalc

Description

EssSetDefaultCalc() sets the default calc script for the active database.

Syntax

ESS_FUNC_M  EssSetDefaultCalc (hCtx, CalcScript);
ESS_HCTX_ThCtx
ESS_STR_TCalcScript

Parameters

hCtxEssbase API context handle.
CalcScriptDefault calc script string.

Return Value

None.

Notes

Access

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

Example

ESS_FUNC_M
ESS_SetDefaultCalc (ESS_HCTX_T   hCtx)
{
   ESS_FUNC_M           sts = ESS_STS_NOERR;
   sts = EssSetDefaultCalc (hCtx, "CALC ALL;");
   
  return (sts);
}

See Also

EssDefaultCalc()
EssGetDefaultCalc()
EssSetActive()
EssSetDefaultCalcFile()