# EsbCheckMemberName

Description

EsbCheckMemberName() checks if a string is a valid member name within the active database outline.

Syntax

    EsbCheckMemberName (hCtx, MemName, isOk)

    ByVal hCtx    As Long
    ByVal MemName As String
          isOk    As Integer

Parameters

hCtx | Essbase VB API context handle.
MemName | Member name to be verified.
isOk | Address of variable to receive a valid member flag. Set to TRUE if member is valid.

Return Value

If successful, this function returns a flag, pValid, indicating if the name string MbrName is a valid member name in the active database outline.

Access

This function requires the caller to have access to the database, and to have selected it as their active database using EsbSetActive().

Example

    Declare Function EsbCheckMemberName Lib "ESBAPIW" (ByVal hCtx As Long, ByVal MbrName As String, isOk As Integer) As Long

    Sub ESB_CheckMemberName ()
       Dim MbrName As String
       Dim Valid As Integer
       Dim sts As Long MbrName = "Year"
       '******************
       ' Check member name
       '******************
       sts = EsbCheckMemberName (hCtx, MbrName, Valid)
         if Valid = ESB_YES
           Print "Valid Member Name"
         End If
    End Sub

See Also

EsbGetMemberInfo()
EsbQueryDatabaseMembers()
EsbVerifyFilter()
EsbSetActive()