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: "inherited" is not working
Topic Summary:
Created On: 23-Jun-2005 15:34
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.
 23-Jun-2005 15:34
User is offline View Users Profile Print this message


Kirk Walker

Posts: 32
Joined: 18-Sep-2004


Cannot delete this... but suddenly was able to make simpler version work.
Thanks anyway.
===========
I am trying to pull together a quick utility to run through modules in a project where they set access on some of the modules' objects to limit access way back in DOORS 4.x. The project has been migrated up through the versions and is now in DOORS 7.1. Another group wants to be able to modify the modules/objects.

Figured I would first get setting the objects to inherited values working at the module level before I stuck it inside a loop to run through the project (and exclude messing with the CP folder and Link modules.

Both my own code attempt and code of others (searched this form) get DXL errors in a loop similar to the following:

Object obj
Module mod = current
bool IsInherited

sorting off

for obj in entire mod do
{ isAccessInherited(obj, IsInherited)) // syntax error
if (IsInherited)
{ inherited(obj) // Set it Inherited syntax error
// specific(obj) // Set it Specific; gets the module's accesses
}
}

Any ideas why this is not working? More importantly, please recommend fix. THANKS!



Edited: 23-Jun-2005 at 15:40 by Kirk Walker
Report this to a Moderator Report this to a Moderator
 23-Jun-2005 22:51
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You've got two closing parentheses in the isAccessInherited line. I'm not getting an error on the inherited line. Is it possible you've defined "inherited" has a variable further up the code?

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