# EssGTerm

Description

EssGTerm() terminates the Essbase Grid API.

Syntax

    ESSG_FUNC_M EssGTerm (Handle);

ESSG_HANDLE_T | Handle

Parameters

Handle | Handle to instance of the EGAPI.

Return Value

If successful, returns ESSG_STS_NOERR.

Notes

- Terminates the Essbase Grid API.
- This call is required.
- Signifies termination of use of the Essbase Grid API.
- This call should be made only once per session and then only at the end of that session.

Access

None.

Example

    #include <essapin.h>
    #include <essgapin.h>

    ESSG_FUNC_M     sts = ESS_STS_NOERR;
    ESSG_INIT_T     InitStruct;
    ESSG_HANDLE_T   Handle;

    InitStruct.ulVersion = ESSG_VERSION;
    InitStruct.ulMaxRows = 1000;
    InitStruct.ulMaxColumns = 200;
    InitStruct.pfnMessageFunc = ESS_NULL;
    InitStruct.pUserdata = ESS_NULL;

    /* initialize EGAPI */
    sts = EssGInit(&InitStruct, &Handle);

    /* terminate the EGAPI */
    if(!sts)
       sts = EssGTerm(Handle);

See Also

Using the Grid API Functions
Grid API Structures