![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Looping over history strange behavior Topic Summary: Created On: 12-Feb-2004 12:31 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am running a DXL script that is attempting to restore an object's Object Text back to the first value it has in its history record.
Basically in the attached code, I have the following: History toRestore, h For h in o do { // at one point I do once and only once the assignment toRestore = h } What appears to be happening is that toRestore always points to the last history record. It appears that the toRestore = h justs sets a pointer to h (it does not copy the entire history record as it exists at that point in time., but as h is being re-used within the for loop, so at the end, it always points to the last history record. Is this indeed the case? Is there a way to force the copy to occur. Has anyone else seen anything like this before. I have had discussions with DOORS support, and they have given me various answers, including why do I need to save the history, just do my modifications then. Answer, I need to continue to examine the history for other changes like deletions that may negate the need to restore. Another option they have give is to save the individual pieces, which could work but is cumbersome and doesn't satsify me with why the strange behavior. If you take an object with no History, and make a number of modifications to the Object Text and run the attached code, you can see the behavior. |
|
![]() |
|
![]() |
|
You need to add a break immediately after "found = true".
ignore this - i didn't read the comments properly ------------------------- Tony Goodman http://www.smartdxl.com Edited: 12-Feb-2004 at 13:00 by Tony Goodman |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Looping over history strange behavior
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.