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: Error while looping through incoming link references in baseline
Topic Summary:
Created On: 1-Sep-2006 12:47
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 Robert Swan, on Tuesday, September 5, 2006 6:21 AM

Answer:
adding brackets , as below will remove the compile errors. for inLnkRef in all (obj2 <- "*") do Obviously you also need to ensure that obj2 is assigned to an object
 1-Sep-2006 12:47
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

Hello,
i need to loop through incoming link refernces in an earlier baseline for which i tried using

for inLnkRef in all obj <-"*" do
{----
}
which is as per the DXL manual. However, i am getting compilation errors. The
for inLnkRef in obj <-"*" do
{----
}
which loops through current module works fine...

Has anybody encountered this problem before....any workaround solution??
Report this to a Moderator Report this to a Moderator
 1-Sep-2006 16:35
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

What's the error? What's inLnkRef defined as?
Report this to a Moderator Report this to a Moderator
 4-Sep-2006 06:42
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

LinkRef inLnkRef 
Object obj2
---------
for inLnkRef in all obj2 <-"*" do
        {
         -----           
        }

The comilation error that i am getting for the above case in as below:

-E- DXL: <Line:643> incorrect arguments for (<-)

-E- DXL: <Line:643> incorrect arguments for (do)

-I- DXL: <Line:926> all done with 2 errors and 0 warnings


The script compiles properly if i remove the all identifier...

Report this to a Moderator Report this to a Moderator
 4-Sep-2006 07:05
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

i am using DOORS 7.0
Report this to a Moderator Report this to a Moderator
 4-Sep-2006 08:56
User is offline View Users Profile Print this message


Robert Swan

Posts: 86
Joined: 14-Apr-2005

Answer Answer
adding brackets , as below will remove the compile errors. for inLnkRef in all (obj2 <- "*") do Obviously you also need to ensure that obj2 is assigned to an object
Report this to a Moderator Report this to a Moderator
 5-Sep-2006 06:20
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

thanks robert, it solved the problem....kind of weird though, since
 for outLnk in all o2 -> "*" do
{
}
works fine...
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.