![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: find and replace Topic Summary: find and replace with module prefix and absolute# Created On: 17-Jan-2007 20:34 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am trying to use dxl to replace all of my "shall"s with "SHALL [module prefix + absolute #]" in the object text of my requirements module. I have played around with the find and replace dxl, but no luck. Any suggestions?
|
|
![]() |
|
![]() |
|
Hi Eleanor,
I'm not quite sure if I did understand you right, but - if - try this DXL (count and filtering are for instrumentation and can be omitted): Module m = current Object o string oText string oldText = "shall" string newText int sOffset, oLength, count = 0 for o in m do { oText = richText o."Object Text" newText = "SHALL" if (findRichText (oText, oldText, sOffset, oLength, false)) { newText = newText "[" identifier o "]" o."Object Text" = richText (replaceRichText (oText, sOffset, oLength, newText) "") count++ accept o } else reject o } filtering on print count |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
find and replace
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.