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: Manipulating richtext containing OLEs
Topic Summary:
Created On: 8-Jun-2007 13:25
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 Tony Goodman, on Tuesday, June 12, 2007 2:36 PM

Answer:
Try this little chap.

If you want to replace all occurrences of the substring then replace the if statement with a while statement...
 8-Jun-2007 13:25
User is offline View Users Profile Print this message


Peter Chattaway

Posts: 14
Joined: 6-Apr-2004

I'm pulling my hair out.
I need to replace text within Object Text, and my code works when there's no OLE - see attachment.
BUT when there's an OLE in the object text AND the code to be replaced sits AFTER the OLE, my code stops (DOORS siezes up and I have to crash out) - I think it's because the function findRichText gets stuck at the OLE - maybe the OLE is too big and so an int return for Offset is not large enough....

Anyone got any ideas how I get round this?

Edited: 8-Jun-2007 at 13:28 by Peter Chattaway
Report this to a Moderator Report this to a Moderator
 11-Jun-2007 11:18
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
Try this little chap.

If you want to replace all occurrences of the substring then replace the if statement with a while statement...

-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 11-Jun-2007 at 11:29 by Tony Goodman
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.