# EsbTerm

Description

EsbTerm() terminates the VB API and releases all system resources used by the VB API.

Syntax

    EsbTerm (hInst)

    ByVal hInst As Long

Parameters

hInst | Essbase VB API instance handle.

Return Value

None.

Notes

- This function should normally be called after all other VB API calls have been completed, immediately prior to terminating your program.
- Because this function terminates use of the Essbase VB API, any VB API functions (other than EsbInit()) called after this function has been executed will return an error.

Access

This function requires no special access.

Example

    Declare Function EsbTerm Lib "ESBAPIW" (ByVal hInst As Long) As Long
    Sub ESB_Term ()
       Dim sts As Long

       '*****************************
       ' Terminate the Essbase VB API
       '*****************************
       sts = EsbTerm (hInst)
    End Sub

See Also

EsbInit()