![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Delete attribute from current module Topic Summary: Delete specified attribute from current module Created On: 13-Dec-2006 16:32 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am working on a program to find certain attributes in the current module, examine whether any values are entered and then decide whether to delete the attribute from the module. I am finding a problem in passing a variable to the object property to find out whether this has any value.
I am attaching the code. Any suggestions or undocumented code to work around the problem is welcome. The code works if I omit the code to examine the values of the selected attribute for each object of the module. Thanks in advance |
|
![]() |
|
![]() |
|
Your using o.adName as if it was a boolean.
You need to check if the value of each attribute for each object is non-null , if there is a non-null value entered then do not delete else delete. |
|
![]() |
|
![]() |
|
Thanks, Ron, for the clarification. But the point is whether I can use the following code:
for o in m do { if (null (o.adName)) { continue } else { ack "The attribute has a value entered \n" } } If I replace adName with say "Req History", the code works. |
|
![]() |
|
![]() |
|
If I recall correctly here is one of the time when you will have to equate a variable to o.adName
then do the check. |
|
![]() |
|
![]() |
|
Change this:
if (null (o.adName)) { to this: if (null (o.adName) || o.adName "" == "") { ------------------------- Shawn Stepper shawn.e.stepper@wellsfargo.com |
|
![]() |
|
![]() |
|
Thanks Shawn for the tip. That makes the code work.
- Krishna |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Delete attribute from current module
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.