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: Array Storage
Topic Summary:
Created On: 8-Jan-2004 16:51
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 Srinivas Dasari, on Thursday, January 8, 2004 10:29 PM

Answer:
Thanks Roger.

Print looks straight forward. I was wondering if there is a way to access the elements of the skip list. For instance:

My code's logic has to also look for modules in other projects due to some condition, and lets say there is a module with same name as the one in my current project, I want to take up a different loop or maybe not store that name in the skip list.

Any thoughts??
 8-Jan-2004 16:51
User is offline View Users Profile Print this message


Srinivas Dasari

Posts: 24
Joined: 13-Dec-2003

Did anyone try storing the module names in a project in an array that can be accessed
at a later storage to generate a report? For example, code should parse thru each of the modules in a project and store the names in an array()
Report this to a Moderator Report this to a Moderator
 8-Jan-2004 22:29
User is offline View Users Profile Print this message


Srinivas Dasari

Posts: 24
Joined: 13-Dec-2003

Answer Answer
Thanks Roger.

Print looks straight forward. I was wondering if there is a way to access the elements of the skip list. For instance:

My code's logic has to also look for modules in other projects due to some condition, and lets say there is a module with same name as the one in my current project, I want to take up a different loop or maybe not store that name in the skip list.

Any thoughts??
Report this to a Moderator Report this to a Moderator
 9-Jan-2004 16:10
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The "for moduleName in Project" loop only finds modules in the top level folder of the project; not modules in sub-folders. Try:

Item itm
string NameMod
for itm in currentProject do
{ if (type(itm) != "Formal") continue // item is Folder, Project, Descriptive, or Link
NameMod = fullName(itm)
put (moduleNames, NameMod, NameMod)
}
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.