Hi,
Remove association through Package / Category.
Set assoColl = aPackage.Associations
For assoID% = 1 To assoColl.Count
Set anAsso = assoColl.GetAt(assoID%)
....
Next assoID%
The reason that the association is not removed is that:
If access association information from classes, both classes owns the
association, and only one is removed.
dan
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, September 19, 2001 5:01 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) Remove an association from a class in VB
Hi,
I am using Rose 98i and Addin in VB.
I want to remove an association on a class, so I use :
Set objAssos = objC1.GetAssociations
objAssos.Remove objAsso
where
objC1 is a RoseClass
objAsso is a RoseAssociation
The command Remove don't crash but is KO.
The count of associations is decrease.
But when I verify in the model, I find again all the associations.
How can I remove the association ?
Thank in advance.
B. JOHRA
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************