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
ParameterDescription

hOutline

Outline context handle.

pszMember

Member name to find.

phMember

Return variable for the member handle. ESB_NULL if the member is not found.

Notes

Return Value

Returns 0 if successful.

Example

Declare Function EsbOtlFindMember Lib 
"ESBOTLN" (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