![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: AutoDeclare function Topic Summary: Testing existing Attribute DXL for AutoDeclared variables. Created On: 27-Jul-2006 15:46 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Many Thanks..... Did not realise the some of Telelogic's own code 'Autodeclares' , this seems to go against the advice given me in my DXL training course. | |
![]() |
|
We operate our Doors through a Citrix envoiroment (With AutoDeclare Switched ON) , recently some of our DXL script were used by another Doors Database this Database has the AutoDeclare Switched OFF. It became apparrent that many of our scripts fall down due to the 'non explicit' declartion of variables within them. A decision has been made to progressivly re-visit the existing code and properly (explicitly) declare all the vairiables to enable the scripts to be compatible with both Databases. Bearing in mind that in Citrix we have not got access to the startupDxl file or command line switches, is there any other way of enabling / disabling the AutoDeclare feature from within DXL Code, Thinking along the lines of a DXL equivilant to the VB 'Option Explicit' statement? If we can switch this feature On and Off we can progressivly work our way through the existing library Testing / changing the code as we go. |
|
![]() |
|
![]() |
|
Hi David,
as Toni mentioned in Other Tread You should be beware of using the Autodeclare function of Doors. I think, it will not ever do what you wanted to do ![]() But if you really want to enable/disable it at runtime you can use the XFLAGS_ |= AutoDeclare_; statement to enable it. Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany Edited: 27-Jul-2006 at 15:59 by Reik Schroeder |
|
![]() |
|
![]() |
|
Well well well. From my other thread, see the attached code for toggling Autodeclare on and off. Hard to believe none of us DXL-nerds never came up with it earlier.
The real problem is that bunches of Telelogic code uses Autodeclare, such as the stuff the Wizards you for layout scripts. Thus while I routinely have Autodeclare off, I've got to turn it on when I look at modules that have this sort of layouts. - Louie |
|
![]() |
|
![]() |
|
Many Thanks..... Did not realise the some of Telelogic's own code 'Autodeclares' , this seems to go against the advice given me in my DXL training course. |
|
![]() |
|
![]() |
|
... and their code is routinely sloppy with no comments and poor variable names, and don't check for DXL abort errors such as trying to modify something in a module open for Read.
- Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
AutoDeclare function
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.