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: 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
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 David McMahon, on Friday, July 28, 2006 3:59 PM

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.



Dave McMahon
General Dynamics UK Ltd.

 27-Jul-2006 15:46
User is offline View Users Profile Print this message


David McMahon

Posts: 16
Joined: 15-Apr-2005


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.



Report this to a Moderator Report this to a Moderator
 27-Jul-2006 15:59
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

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
Report this to a Moderator Report this to a Moderator
 27-Jul-2006 16:24
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 28-Jul-2006 15:59
User is offline View Users Profile Print this message


David McMahon

Posts: 16
Joined: 15-Apr-2005

Answer 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.



Dave McMahon
General Dynamics UK Ltd.

Report this to a Moderator Report this to a Moderator
 9-Aug-2006 00:42
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

... 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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.