![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: how to use the rename function Topic Summary: Created On: 21-Mar-2006 20:47 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: //try /*demo*/ string stTest = "Test " Item i for i in current Project do { string sOld = name(i)"" string sDesc = description(i)"" if ((type (i)""=="Formal") || (type(i)""=="Folder")) { string sNew = stTest sOld if (!null i) { rename ( i , sNew, sDesc) } } } | |
![]() |
|
I am not sure how to rename all the folders, modules in a project automatically.
For example, I want to concatenate the word "Test " in front of all module and folder names. string stTest = "Test " Item i for i in current Project do { string sOld = name(i)"" string sDesc = description(i)"" if ((type (i)""=="Formal") || (type(i)""=="Folder")) { string sNew = stTest sOld if (!null i) { rename (Folder i sOld, sNew, sDesc) } } } |
|
![]() |
|
![]() |
|
//try
/*demo*/ string stTest = "Test " Item i for i in current Project do { string sOld = name(i)"" string sDesc = description(i)"" if ((type (i)""=="Formal") || (type(i)""=="Folder")) { string sNew = stTest sOld if (!null i) { rename ( i , sNew, sDesc) } } } |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
how to use the rename function
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.