![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Iterating over a table row Topic Summary: Created On: 5-Jan-2005 09:42 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hi Paul, the syntax for "for" loops has its own set of rules. For example, to loop through all module attributes the following is used... for modAttrName in attributes(current Module) do there is no "attributes" function...it's just DXL's way of specifying what type of loop is required. In your case, the "row" statement specifies that a loop through all objects in a row is required. Cheers, Antonio. | |
![]() |
|
Object o
for o in row(current Object) do { ... } What's going on here? According to the DXL manual, the 'row' function returns a boolean, so this loop seems to be iterating over a boolean value, but in fact it iterates over the cells in the row. Its as though the row function returns the row header object like the getRow function, but if I try Object oR = row(current Object), an error occurs. ![]() |
|
![]() |
|
![]() |
|
Hi Paul,
the syntax for "for" loops has its own set of rules. For example, to loop through all module attributes the following is used... for modAttrName in attributes(current Module) do there is no "attributes" function...it's just DXL's way of specifying what type of loop is required. In your case, the "row" statement specifies that a loop through all objects in a row is required. Cheers, Antonio. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Iterating over a table row
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.