![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: assigning enum values Topic Summary: how to assign enum values to attributes Created On: 27-Nov-2007 16:48 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Worked great! Thanks. -Greg | |
![]() |
|
Hi,
How can I assign enumeration values to enum attributes in dxl. Essentially, I want to copy values from one attribute (string) into another that has type enum (the string will be of one of the valid enum type values). thanks, --Greg |
|
![]() |
|
![]() |
|
Well, just do it :-)
just put the correct names in for 'otherStringAttName' and 'thisEnumeratedAttName'. Object currObj = current string newValue = currObj .otherStringAttName noError currObj .thisEnumeratedAttName = newValue if (lastError != ""){warningBox "The value " newValue " is not valid for attribute " thisEnumeratedAttName "!"} Regards, Peter |
|
![]() |
|
![]() |
|
Worked great! Thanks. -Greg
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
assigning enum values
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.