Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Search text in module
Topic Summary: Sum up the search in Object Heading and Text
Created On: 19-Jul-2006 18:00
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Reik Schroeder, on Wednesday, July 19, 2006 10:51 PM

Answer:
Hi Krishna,
the best way would be to do it in one loop. By concatinating an empty string, you can use the attribute values directly.
Be carefull with using the regular expression - your search string should not contain the special phrases used in REs.

Good luck

Greetings
Reik Schröder
 19-Jul-2006 18:00
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

While conducting search for specific text in a module, I want to find out any instance of the text in Object Heading, Object Short Text or Object Text. I have the following code for the Object Text looping through the module.
 
string searchText = "xxxx"
Regexp rSearchText = regexp searchText
string textToSearch = o."Object Text"
if (rSearchText textToSearch) {
   (do something)
 }
If I want to do the search in the Object Heading and Object Short Text also, do I have to run separate loops? Is there a way that all the searches can be combined to one?

Thanks in advance for any suggestions

- Krishna
Report this to a Moderator Report this to a Moderator
 19-Jul-2006 19:03
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Answer Answer
Hi Krishna,
the best way would be to do it in one loop. By concatinating an empty string, you can use the attribute values directly.
Be carefull with using the regular expression - your search string should not contain the special phrases used in REs.

Good luck

Greetings
Reik Schröder

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 19-Jul-2006 22:51
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi Reik,
This works very well. Thanks for the tip.
- Krishna
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.