![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Conditional #includes Topic Summary: Created On: 25-Mar-2004 10:47 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I wanted to implement conditional #includes, so I tried the following and was pleasantly surprised to see that it works.
------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Put this function in Hello.Dxl:
void AckGreeting() { ack("Hello") } Put this function in Goodbye.dxl: void AckGreeting() { ack("Goodbye") } Add this to the bottom of your code: AckGreeting(). Notice you get a DXL error because function "AckGreeting" isn't defined. Its not defined because it was defined within a local scope, either the IF or the ELSE scope above. - Louie |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
Telelogic says that since DXL is interpreted, there are no real conditional includes. I've solved this problem with multiple "addins" command locations (it looks for the first include in the list), and deploying different version of the same named include file. Function "fStripRT" that extracts the raw text from a rich text string is fundamentally different from v5 to v6 and I have two such functions: v5 uses "for <RichText> in InText" and v6 uses "for <RichTextParagraph> in InText". The RichTextParagraph stuff will NOT interpret in v5 so I cannot bypass it with a "if (ThisIsv5DOORS)" statement.
The problem with this approach is that I have to be carefull when deploying. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Conditional #includes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.