EsbCreateLocalContext

Description

EsbCreateLocalContext() creates a local VB API context for use in local VB API operations.

Syntax
EsbCreateLocalContext (hInst, User, Password, phCtx)
ByVal hInst    As Long
ByVal User     As String
ByVal Password As String
      phCtx    As Long

Parameters

hInstEssbase VB API instance handle.
UserCurrently not used - should be an empty string.
PasswordCurrently not used - should be an empty string.
phCtxAddress of variable to receive Essbase local context handle.

Return Value

If successful, a valid local context handle is returned in phLocalCtx.

Notes

Access

This function requires no special privileges.

Example

Declare Function EsbCreateLocalContext Lib "ESBAPIW" (ByVal hInst As Long, ByVal User As String, ByVal Password As String, hCtx As Long) As Long

ESB_CreateLocalContext ()
   Dim sts As Long
   Dim User As String
   Dim Password As String
   Dim hCtx As Long

   '*********************
   ' Create Local Context
   '*********************
   sts = EsbCreateLocalContext (hInst, User, Password, hCtx) 
End Sub

See Also

EsbDeleteLocalContext()
EsbInit()