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: Searching using wildcards
Topic Summary: Searching using wildcards
Created On: 2-Aug-2005 12:24
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 Paul Timms, on Tuesday, August 2, 2005 2:45 PM

Answer:
Thank-you Ron - very helpful

 2-Aug-2005 12:24
User is offline View Users Profile Print this message


Paul Timms

Posts: 9
Joined: 10-Jan-2003

Hello,

I am trying to set-up some DXL which will allow me to search a module and automate some counting.

THe searching I want to do is :

IF (attribute X contains "3") then count

I cannot see how to do this with DXL - either using the CONTAINS function or WILDCARDS.

The only way I can do it is using the filter menu - which will only save filters if I save a view - and with about 10 filters needed this seems cumbersome.

Can anyone help??

Thank you

Paul
Report this to a Moderator Report this to a Moderator
 2-Aug-2005 13:34
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

//Demo
/*By Ron Lewis*/

Object o
Module m = current
string s 
int i = 0
for o in m do
{  s = o."Attribute Name"
   if(matches("3", s) i++
}
ack "Count=" i ""

//Note for wild cards you can use regular expressions in place of the "3"
Report this to a Moderator Report this to a Moderator
 2-Aug-2005 14:45
User is offline View Users Profile Print this message


Paul Timms

Posts: 9
Joined: 10-Jan-2003

Answer Answer
Thank-you Ron - very helpful

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.