EsbOtlAssociateAttributeMember

Associates an attribute member with a standard or base member.

Syntax

EsbOtlAssociateAttributeMember (hOutline, BaseMember, AttributeMember)
ByVal hOutline        As Long
ByVal BaseMember      As Long
ByVal AttributeMember As Long
ParameterDescription

hOutline

Handle to the outline

BaseMember

Handle to the standard of base member

AttributeMember

Handle to the attribute member

Notes

Return Value

Returns STS = 0 when successful. Otherwise, returns an error code.

Access

This function requires no special privileges.

Example

        Sub ESB_OtlAssociateAttributeMember()
                ' NOTE: 'Out' is a sub to print the output within quotes to a listbox or text box
Dim BaseMbr As Long
        Dim AttrMbr As Long
        Dim sts as long
        Dim hOutline as long
hOutline = ESB_OtlOpenOutline
If hOutline = vbNull Then Out "ESB_OtlOpenOutline() failed: " & sts: Exit Sub
        
BaseMbr = ESB_OtlFindMember("Enter base dimension: ")
If BaseMbr = vbNull Then
Out "No valid member found."
Out "ESB_OtlAssociateAttributeDimension() failed."
Exit Sub
End If
    
        AttrMbr = ESB_OtlFindMember("Enter attribute dimension: ")
        If AttrMbr = vbNull Then
Out "No valid member found."
Out "ESB_OtlAssociateAttributeMember() failed."
Exit Sub
End If
sts = EsbOtlAssociateAttributeMember(hOutline, BaseMbr, AttrMbr)
' abstract sub to call EsbOtlVerifyOutline(), ESBOTLNriteOutline(), EsbOtlRestructure(),EsbUnlockObject() and
' EsbOtlCloseOutline() as neededà
tuckinoutline
If sts <> 0 Then Out "EsbOtlAssociateAttributeMember failed" & sts: Exit Sub
ESB_OtlGetAttributeInfo
End Sub

See Also