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: Passing arguments to function on same line as output stream
Topic Summary:
Created On: 13-Feb-2003 22:26
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 Michael Sutherland, on Friday, February 14, 2003 2:58 PM

Answer:
Marc,

Try: file << "\t\t" ( checkStatus( status ) ) "\n"

The DXL manual gives a bit of insight on the subject:

Parsing
Statement or expression parsing is right associative and has a relatively high precedence. Parenthesis
has the highest precedence.
 13-Feb-2003 22:26
User is offline View Users Profile Print this message


Marc Battistello

Posts: 13
Joined: 19-Sep-2002

Im getting a really weird error when I do a line like the following,

output << "\t\t" checkStatus( status ) "\n"

If checkStatus() did something like return a HTML string with color coding based on status

such as checkStatus( "red" ) ==would return==> "<td bgcolor=red>RED<\td>"

but its not doing this, its passing in the "\n" and returning something like (note chariage return after RED),

"<td bgcolor=red>RED
<\td>"

Anyone got an idea of whats going on?

Ive seen this happen on two different PCs so far, on NT4 and the other Win2000, both running v5.2

Report this to a Moderator Report this to a Moderator
 14-Feb-2003 03:30
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Answer Answer
Marc,

Try: file << "\t\t" ( checkStatus( status ) ) "\n"

The DXL manual gives a bit of insight on the subject:

Parsing
Statement or expression parsing is right associative and has a relatively high precedence. Parenthesis
has the highest precedence.

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
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.