Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Q Language Expressions
Topic Summary:
Created On: 31-Aug-2005 18:02
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
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.
 31-Aug-2005 18:02
User is offline View Users Profile Print this message


Sue Strane

Posts: 12
Joined: 17-Jun-2005

Under the advanced condition tab, is the following a valid condition:

$fullPathName = "ArchitecturePkg*". Shouldn't this iterate those with ArchitecturePkg in their path? When I type the full path name in, it works. Does the * mean that it allows anything to follow?
Report this to a Moderator Report this to a Moderator
 1-Sep-2005 07:31
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi, Sue

The advanced tab allows you to enter a Q Language expression, and in Q Language the "=" operator is just that - it tests for equality; wildcards are not supported, as far as I know.

Instead, try entering the following in the advanced condition tab:

[CODE]match(`^ArchitecturePkg`, $fullPathName)[/CODE]

This will evaluate to True for any $fullPathName that starts with the string "ArchitecturePkg". Note that the quotes around the first parameter are the grave accent ` character, not the usual single ' or double " quote.

For more information, look at the Q Language guide, installed in your ReporterPLUS folder.

regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
 1-Sep-2005 12:12
User is offline View Users Profile Print this message


Sue Strane

Posts: 12
Joined: 17-Jun-2005

Thank you very much Simon! I will try that out.
Report this to a Moderator Report this to a Moderator
 2-Sep-2005 18:18
User is offline View Users Profile Print this message


Sue Strane

Posts: 12
Joined: 17-Jun-2005

How does the trim function work in Q?
Report this to a Moderator Report this to a Moderator
 15-Sep-2005 07:32
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi again

In the Q Language guide, it states:

"This [the trim function] returns the string s with all leading and trailing spaces, tabs, formfeeds, carriage returns, and newlines
removed."

In other words, it returns your string with all the whitespace characters removed from the beginning and the end. Simple!

cheers,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

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