Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: separating text from headings
Topic Summary:
Created On: 27-Dec-2006 11:54
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Edwin Buisman, on Friday, December 29, 2006 9:43 AM

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.
 27-Dec-2006 11:54
User is offline View Users Profile Print this message


Edwin Buisman

Posts: 38
Joined: 12-Aug-2004

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.
Report this to a Moderator Report this to a Moderator
 27-Dec-2006 15:13
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

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
Report this to a Moderator Report this to a Moderator
 28-Dec-2006 15:25
User is offline View Users Profile Print this message


Edwin Buisman

Posts: 38
Joined: 12-Aug-2004

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...
Report this to a Moderator Report this to a Moderator
 28-Dec-2006 18:49
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

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
Report this to a Moderator Report this to a Moderator
 29-Dec-2006 09:43
User is offline View Users Profile Print this message


Edwin Buisman

Posts: 38
Joined: 12-Aug-2004

Answer 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.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.