EsbOtlFindAlias

Finds a member with the specified alias name and returns a handle to the member.

Syntax

EsbOtlFindAlias (hOutline, pszAlias, pszAliasTable, phMember)
ByVal hOutline      As Long
ByVal pszAlias      As String
ByVal pszAliasTable As String
      phMember      As Long
ParameterDescription

hOutline

Outline context handle.

pszAlias

Alias name to find.

pszAliasTable

Alias table to search in. Use "" to search all alias tables. Use "Default" to search the default alias table.

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 EsbOtlFindAlias Lib 
"ESBOTLN" (ByVal hOutline As Long, ByVal pszAlias 
As String, ByVal pszAliasTable 
As String, phMember As Long) As Long
Sub ESB_OtlFindAlias()
Dim sts As Long
Dim Object As ESB_OBJDEF_T
Dim hOutline As Long
Dim hMemberAlias 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 = EsbOtlFindAlias(hOutline, "Root Beer", "", hMemberAlias)
End If
End Sub

See Also