![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DXL access to enumerated attribut type Topic Summary: Created On: 6-Sep-2004 09:14 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Frank, You need to use the attribute type size property in your loop as follows: for (i = 0; i < at.size; i++) { strVal = at.strings // at.values // at.colours etc ... } | |
![]() |
|
Hi
How can i receive the Elements of an enumerated Attribute. Neither i know know how many alternatives are declared nor their related numbers. I tried the following, but when i is at the end of the enumeration I get an error instead of val==null Module m = current Module string attrib = "status" AttrDef ad = find(m, attrib) AttrType at = ad.type int i string val = "" for (i=0; val!=null; i++) { val=at.strings print val } ------------------------- Frank |
|
![]() |
|
![]() |
|
Frank,
You need to use the attribute type size property in your loop as follows: for (i = 0; i < at.size; i++) { strVal = at.strings // at.values // at.colours etc ... } ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks Tony for Your fast response
------------------------- Frank |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DXL access to enumerated attribut type
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.