# EsbOtlFindMember

Description

EsbOtlFindMember() finds a member with the specified name and returns a handle to the member.

Syntax

    EsbOtlFindMember (hOutline, pszMember, phMember)

    ByVal hOutline  As Long
    ByVal pszMember As String
          phMember  As Long

Parameters

hOutline | Outline context handle.
pszMember | Member name to find.
phMember | Return variable for the member handle. ESB_NULL if the member is not found.

Return Value

Returns 0 if successful.

Notes

- If the member being sought has shared members, only the handle to the actual member is returned. Once you have the handle, use EsbOtlGetNextSharedMember() to get shared member information.
- If no member is found, phMember is set to ESB_NULL and the call returns 0.

Example

    Declare Function EsbOtlFindMember Lib
    "ESBOTLW" (ByVal hOutline As Long,
    ByVal pszMember As String, phMember As Long) As Long

    Sub ESB_OtlFindMember()
    Dim sts As Long
    Dim Object As ESB_OBJDEF_T
    Dim hOutline As Long
    Dim MbrInfo As ESB_MBRINFO_T
    Dim hMemberProfit As Long
    Dim hNewMember As Long

    Object.hCtx = hCtx
    Object.Type = ESB_OBJTYPE_OUTLINE
    Object.AppName = "Sample"
    Object.DbName = "Basic"
    Object.FileName = "Basic"

    sts = EsbOtlOpenOutline(hCtx, Object,
    ESB_YES, ESB_YES, hOutline)

    If sts = 0 Then
       sts = EsbOtlFindMember(hOutline, "Profit",
        hMemberProfit)
    End If
    End Sub

See Also

EsbOtlMoveMember()
EsbOtlRenameMember()
EsbOtlAddMember()
EsbOtlDeleteMember()
EsbOtlGetNextSharedMember()