EssSetDefaultCalc

Sets the default calc script for the active database.

Syntax

ESS_FUNC_M  EssSetDefaultCalc (hCtx, CalcScript);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle.

CalcScript

ESS_STR_T

Default calc script string.

Notes

The calc script string must not be greater than 64 KB long.

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_SetDefaultCalc (ESS_HCTX_T   hCtx)
{
   ESS_FUNC_M           sts = ESS_STS_NOERR;
   sts = EssSetDefaultCalc (hCtx, "CALC ALL;");
   
  return (sts);
}

See Also