Hi!

Unfortunately, the RemoveAll method only applies to user-defined
collections, not Rose model collections such as ExternalDocumentCollection
(see Help topic, "About Collection Properties and Methods"). To remove the
external document links, you need to iterate through the collection and use
the DeleteExternalDocument method (inherited by the Operation class from the
RoseItem class):

Set theOperation = AllOperation.GetAt (j)
Set AllExDoc = theOperation.ExternalDocuments
For k = 1 To AllExDoc.Count
        isDeleted = theOperation.DeleteExternalDocument (AllExDoc.GetAt(k))
Next k

Hope this helps!

Very sincerely,
Rose Grissinger
Technical Writer
Rational Software

-----Original Message-----
From: Lupu, Alon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 12:03 PM
To: '[EMAIL PROTECTED]'
Subject: (ROSE) Removing External Doc links



Hi,

I'm trying to remove all external document links by using 'RemoveAll'
method:

..
Set theOperation = AllOperation.GetAt (j%)
Set AllExDoc = theOperation.ExternalDocuments
AllExDoc.RemoveAll
..

I've tried a few variations but got the same result:
Run-time error 65515, Removing classes from this collection is not allowed

Any advice on what I'm doing wrong?

Cheers,
&al
************************************************************************
* 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/products/rose/usergroups/rose_forum.jtmpl
* 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/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to