![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How do I .... Topic Summary: trying to write my first DXL Created On: 11-May-2006 17:01 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am trying to write my first DOORS DXL. I started with something I thought would be simple. Multiply two attribute in a module together and place it in another attribute. So I started to see if I can loop thru all the objects in a module and try to read an attribute. I figure if I can loop through a module and do that, everything else will be understood.
From I have been able to deduce from the DXL manual and library scripts this is what I have come up with: pragma runLim, 0 void showOut(Object o) { Module current() Object myObj string s, s1 for myObj in all current Module do { s = myObj."Conn ID" s1 = "Conn ID: " s displayRich s1 } } showOut(obj) I get an error running this of "Unable to resolve forward reference". What am I missing or where have I gone wrong? |
|
![]() |
|
![]() |
|
//Try
/**/ pragma runLim, 0 void showOut(Object o) { //Module current() Object myObj string s, s1 for myObj in all current Module do { s = myObj."Conn ID" s1 = "Conn ID: " s print s1 "\n" } } showOut(obj) |
|
![]() |
|
![]() |
|
current is a function that returns (in this case) the module name. But you're code tries to define it as a module name, causing failure.
As Ron says remove the 'Module current ()' statement.
Alternatively use 'Module mymod = current Module ' in its place and then
'for myObj in all mymod do ' as the loop.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How do I ....
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.