![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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. | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.