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: Compare OLE content
Topic Summary: How to compare 2 version of object with OLE content?
Created On: 5-Oct-2007 16:32
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.
 5-Oct-2007 16:32
User is offline View Users Profile Print this message


Remco Lagarde

Posts: 3
Joined: 1-Feb-2007

I have an object with an OLE picture in it and some text. I make a baseline of the module. Change the OLE picture and the text of the object. How can I identify that the OLE picture has been changed apart from looking at the picture?
Report this to a Moderator Report this to a Moderator
 9-Oct-2007 22:06
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Remco,

Assuming the text in baseline object and current object hasn't changed you can compare strings similar to the following snippet of code. Your challenge will be to set:
string sBaseline to richTextWithOle(oBaseline."Object Text")


If you want to refine the snippet you have to strip out the plain text that may have changed in both the baseline and current object (which is a significant challenge).

If you want software to identify the differences in the images you will have to save both OLEs to files and route the files to a third party graphic package that will make the comparison to highlight differences in the graphic.

//Snippet to compare to object to denote difference assumes sBaseline is set to baseline richText value
Object o = current
string sCurrent= richTextWithOle(o."Object Text")
if( sCurrent!=sBaseline) print "Difference"

Edited: 9-Oct-2007 at 22:29 by ron lewis
Report this to a Moderator Report this to a Moderator
 10-Oct-2007 08:54
User is offline View Users Profile Print this message


Remco Lagarde

Posts: 3
Joined: 1-Feb-2007

Ron,

You are absolutely right if the text itself has not changed.I am looking for a way to identify changes in the Ole Object if the text has been changed too.fficeffice" />>>

Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.