![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: separating text from headings Topic Summary: Created On: 27-Dec-2006 11:54 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hi all, I was a bit in a hurry, so i did the not so nice solution (See the code) I've added a confirm dialog with some notification. This works actually quite nice. | |
![]() |
|
Hello,
I try to enforce a rule where object heading and object text are separated (heading stays, object text copied one level down) including all OLE and stuff. this works perfect for one object, but with several this mixes up my entire module. Any suggestions? Thanks in advance Edwin Buisman. |
|
![]() |
|
![]() |
|
You are making the sin of modifying for loop by creating the object
An easy fix is: after creating a new object -- exit the loop then start the loop from the beginning. There are more eloquent solutions but the above is the easiest patch for your code. Other possibilities include: use a loop with a 'next object' construct use a skip list containg objects to be modified create a array of object number to be modified Edited: 27-Dec-2006 at 23:17 by ron lewis |
|
![]() |
|
![]() |
|
The skip list is probably the smartest, with gotoObject() you then use the code.
I had the same idea, I hoped that the previous solution was the easy solution... |
|
![]() |
|
![]() |
|
Using a Skip list is definitely the way to go, however it's a lot easier than it seems at first, and you do not need to use gotoObject() at all.
Modify your code to look like this: Object o Module m = current Skip objectList=create for o in m do put(objectList, o, o) for o in objectList do { ... } delete objectList -Dennis |
|
![]() |
|
![]() |
|
Hi all,
I was a bit in a hurry, so i did the not so nice solution (See the code) I've added a confirm dialog with some notification. This works actually quite nice. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
separating text from headings
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.