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: Symbol Mixup?
Topic Summary: Less than or equal signs getting changed.
Created On: 10-Jul-2006 21:33
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 Matt Hofferth, on Tuesday, July 11, 2006 3:24 PM

Answer:
Yeah, sorry, I program on a different computer and its kind of a hassle to get my code over to here. Thanks for that help though, I think I figured out what I was missed.
 10-Jul-2006 21:33
User is offline View Users Profile Print this message


Matt Hofferth

Posts: 16
Joined: 20-Jun-2006

I have a very basic script that just merges selected object text into one object. It just basically concatenates the object text from each selected object. The problem arises when a less than or equal to symbol or a greater than or equal to symbol is inserted via DOORS and then merged using the script. For some reason it changes the less than sign to a superscript 3 and the greater than sign to a Lira symbol. I was wondering if there is any reason/fix for this.
Report this to a Moderator Report this to a Moderator
 10-Jul-2006 23:57
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Should have posted the script. If you are retrieving the rich text from the objects then you have set the value as rich text. If you don't retrieve rich text then don't set it using rich text. Script should look like one of the following:

[1]
Text1 = richTextWithOle(o1, "Object Text")
Text2 = richTextWithOle(o1, "Object Text")
o1."Object Text" = richText(Text1 "\n" Text2)

[2]
Text1 = o1."Object Text"
Text2 = o2."Object Text"
o1."Object Text" = Text1 "\n" Text2

- Louie
Report this to a Moderator Report this to a Moderator
 11-Jul-2006 15:24
User is offline View Users Profile Print this message


Matt Hofferth

Posts: 16
Joined: 20-Jun-2006

Answer Answer
Yeah, sorry, I program on a different computer and its kind of a hassle to get my code over to here. Thanks for that help though, I think I figured out what I was missed.
Report this to a Moderator Report this to a Moderator
 11-Jul-2006 17:45
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

I would be interested in hearing what you figured out, Matt. We've run into this problem too, in a script that follows links and dumps text out to an Excel via a tab-separated file. I seem to remember not being able to find a good way to get it to come out of DOORS right, or to show up properly in Excel (of course, just because I couldn't find a way doesn't mean there isn't one ).

What I ended up doing was to scan the text after getting it out of DOORS, and replace the '£' (lira) with ">=" and the other as appropriate.

This same problem shows up in the DOORS Import RTF script too.

Chris
Report this to a Moderator Report this to a Moderator
 11-Jul-2006 17:59
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Upon further inspection, the "Export to DOORS" function in Word correctly gets the greater- and less-than-or-equal symbols. Seems kind of strange...
Report this to a Moderator Report this to a Moderator
 12-Jul-2006 19:26
User is offline View Users Profile Print this message


Matt Hofferth

Posts: 16
Joined: 20-Jun-2006

Yeah, it seems there are two "types" of greater than or less than symbols... the kind you import from Word, and the kind you can add within DOORS. It was the DOORS symbols that I was having issues with, the Word ones worked just fine. Per Louie's suggestion, I used the [1]st snippet of code and DOORS merged the symbols just fine. I must point out that the proper from of the richTextWithOle(o1."Object Text") is a dot, not the comma as it appears above. Small typo but it gives you the ever popular dxl error. I don't know if that will help you in the export, but good luck with that. Matt
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.