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: Hexidecimal Converter
Topic Summary:
Created On: 11-Mar-2003 17:30
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.
 11-Mar-2003 17:30
User is offline View Users Profile Print this message


Frank Lipski

Posts: 42
Joined: 6-Nov-2002

I need to display an integer attribute as a hexadecimal number. I couldn't find anything that seemed
to display an integer as a hex. Does anyone know of any undocumented DXL feature that might do this?

Being there didn't appear to be anything, I figured it wouldn't be too difficult to write a layout script to do such a thing. The basic test code is attached. However, DXL seems to have some funny behaviors with int.

One of the test I tried was -1 hoping to get FFFF FFFF, this bombed on an invalid index. Okay, I thought, let me see how it handled int > 7FFF FFFF (2147483647). It seemed to limit the int to max 2147483647. So my question is does anyone know how DXL treats ints, or have run across this problem and have workaround.

As I was testing the code, I seemed extremely slow. I orginially used a text Buffer in place of string and did a number of other things, but it seems extremely slow. It doesn't seem too bad when it was actually inserted into a layout column. Any thoughts?

Thanks in Advance
Frank Lipski
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.