# EsbGetVersion

Description

EsbGetVersion() gets the full version number of the connected Essbase server, in the form Release.Version.Revision, e.g. 3.0.0.

Syntax

    EsbGetVersion (hCtx, Release, Version, Revision)

    ByVal hCtx     As Long
          Release  As Integer
          Version  As Integer
          Revision As Integer

Parameters

hCtx | Essbase VB API context handle.
Release | Address of variable to receive release number.
Version | Address of variable to receive version number.
Revision | Address of variable to receive revision number.

Return Value

If successful, returns the full incremental Essbase version number in pRelease, pVersion and pRevision.

Notes

- You can call this function after connecting to a server, to ensure that the Essbase server version supports all the features used by your program.

Access

This function requires no special privileges.

Example

    Declare Function EsbGetVersion Lib "ESBAPIW" (ByVal hCtx As Long, Release As Integer, Version As Integer, Revision As Integer) As Long

    Sub ESB_GetVersion ()
       Dim sts As Long
       Dim Release As Integer
       Dim Version As Integer
       Dim Revision As Integer

       '************
       ' Get Version
       '************
       sts = EsbGetVersion (hCtx, Release, Version, Revision)
    End Sub