![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Search and Copy text to another attribute Topic Summary: Created On: 2-Nov-2006 19:57 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I know this is probably easy for most but I'm very new to DXL scripting and I would like to know if anyone out there can point me in the right direction for this type of script.
I need it to search for a specific string of text and copy it to a new column/attribute.
My thanks in advance.
|
|
![]() |
|
![]() |
|
Real quick and somewhat off the cuff, a code snippet follows.
It may not be perfect, but it should point you in a reasonable direction. There are tons of permutations you could do. I picked one. Regular Expressions may be your friend for this one if you haven't used them yet. Good luck string objtext Object o Module m = current // loop through all object in this module for o in m do { objtext=o."Object Text" // if Object Text contains xyz if (matches("xyz", objtext)) { // copy everything after xyz to the other object o."other object" = objtext[end 0 + 1:] } } |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Search and Copy text to another attribute
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.