Hi Arno,

        Here's a rather simple script that adds an additial string value to
a UseCase's existing documentation value. Hope it helps:

Sub Main
        Dim ucRoot As Category
        Dim theUC As UseCase
        Dim AllUseCases As UseCaseCollection

        Set ucRoot = RoseApp.CurrentModel.RootUseCaseCategory
        Set AllUseCases = ucRoot.UseCases
        Set theUC = AllUseCases.GetFirst("NewUseCase")
        
        Dim myStr As String
        myStr = "Additional Info..."
        
        theUC.Documentation = theUC.Documentation & Chr$(13) + Chr$(10) &
myStr
End Sub



Thank you,

Shaquille Asghari
Senior Support Engineer
Rational Customer Service - Committed to Service Excellence
SCP Certified:- http://www.rational.com/support/scp.jsp
Rational
the software development company

==========Original Messege==========



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 6:20 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: (ROSE) Script to change a certain value



Hi,

Now that I know about the script editor, I am eager for more scripts:

I want to change ALL documentation fields for a usecase.
The new value should be the original value AND some extra text. 

Does anyone know how to do that?

Greetings,
Arno Leenders
-----------------------------------------------------------------
ATTENTION:
No legal consequences can be derived from the content of this 
e-mail and/or its attachments. Neither is sender committed to 
these. The content of this e-mail is exclusively intended for 
addressee(s) and information purposes. Should you receive this 
message by mistake, you are hereby notified that any disclosure, 
reproduction, distribution or use of this message is strictly 
prohibited. Sender accepts no liability for any damage resulting 
from the use and/or acceptation of the content of this e-mail. 
Always scan attachments for viruses before opening them. 
----------------------------------------------------------------- 

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* 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
*
* Post or Reply to: [EMAIL PROTECTED]
* 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
*************************************************************************

Reply via email to