Disassociates an attribute member from a base member.
Syntax
EsbOtlDisassociateAttributeMember (hOutline, BaseMember, AttributeMember) ByVal hOutline As Long ByVal BaseMember As Long ByVal AttributeMember As Long
Parameter | Description |
---|---|
hOutline | Handle to the outline |
BaseMember | Handle to the base member |
AttributeMember | Handle to the attribute member |
Notes
When you disassociate an attribute dimension from a base dimension, you disassociate all members of the attribute dimension from members of the base dimension.
Return Value
Returns STS = 0 when successful. Otherwise, returns an error code.
Access
This function requires no special privileges.
Example
Sub ESB_OtlDisassociateAttributeMember() Dim BaseMbr As Long Dim AttributeMbr 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 member: ") If BaseMbr = vbNull Then Out "ESB_OtlGetMemberInfo() failed in ESB_OtlFindMember. " & sts: Exit Sub AttributeMbr = ESB_OtlFindMember("Enter attribute member: ") If AttributeMbr = vbNull Then Out "ESB_OtlGetMemberInfo() failed in ESB_OtlFindMember. " & sts: Exit Sub sts = EsbOtlDisassociateAttributeMember(hOutline, BaseMbr, AttributeMbr) If sts = 0 Then Out "EsbOtlDisassociateAttributeMember failed " & sts: Exit Sub sts = EsbOtlDeleteMember(ghOutline, AttrMbr) If sts <> 0 Then Out "EsbOtlDeleteMember failed" & sts: Exit Sub ' abstract sub to call EsbOtlVerifyOutline(), ESBOTLNriteOutline(), EsbOtlRestructure(),EsbUnlockObject() and ' EsbOtlCloseOutline() as neededà tuckinoutline End Sub
See Also