EsbOtlFindAlias() finds a member with the specified alias name and returns a handle to the member.
EsbOtlFindAlias (hOutline, pszAlias, pszAliasTable, phMember)
ByVal hOutline As Long ByVal pszAlias As String ByVal pszAliasTable As String phMember As Long
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. |
Returns 0 if successful.
Declare Function EsbOtlFindAlias Lib "ESBOTLW" (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