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: How do I get a a fully specified registry key within DXL
Topic Summary:
Created On: 11-Oct-2004 21:06
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 Ross Morgan, on Tuesday, October 12, 2004 9:07 PM

Answer:
string sVersion = doorsInfo(infoVersion)

gives you the DOORS version.

Regexp rMajMin = regexp("[0-9]+\\.[0-9]")
rMajMin sVersion
string sMajMin = sVersion[match 0]

gives you the version registry key
 11-Oct-2004 21:06
User is offline View Users Profile Print this message


Bruce Tuskey

Posts: 77
Joined: 2-Mar-2004

I need to get a fully specified registry key from within a DXL program.

I am currently setting the key manually with each version update. Is there a way to get this information so that the code will not have to be manually updated with each new version?

Here is an example of what is being used now:

string strRegKey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Telelogic\\DOORS\\7.1\\Config"


Thanks ,

Bruce


-------------------------
Bruce Tuskey
Sr. Principle Engineer
Tuskey@gmail.com

"All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien)

Edited: 11-Oct-2004 at 21:10 by Bruce Tuskey
Report this to a Moderator Report this to a Moderator
 12-Oct-2004 09:53
User is offline View Users Profile Print this message


Ross Morgan

Posts: 74
Joined: 15-Apr-2004

Answer Answer
string sVersion = doorsInfo(infoVersion)

gives you the DOORS version.

Regexp rMajMin = regexp("[0-9]+\\.[0-9]")
rMajMin sVersion
string sMajMin = sVersion[match 0]

gives you the version registry key

Edited: 13-Oct-2004 at 13:52 by Ross Morgan
Report this to a Moderator Report this to a Moderator
 12-Oct-2004 21:09
User is offline View Users Profile Print this message


Bruce Tuskey

Posts: 77
Joined: 2-Mar-2004

Thanks Ross, that was a big help. For those using the code ross provided, remember to add regexp to line 2. It should look like the code below:



string sVersion = doorsInfo(infoVersion)
Regexp rMajMin = regexp("[0-9]+\\.[0-9]" )
rMajMin sVersion
string sMajMin = sVersion[match 0]

print sVersion "\n"
print sMajMin "\n"


Bruce

-------------------------
Bruce Tuskey
Sr. Principle Engineer
Tuskey@gmail.com

"All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien)

Edited: 10-Feb-2005 at 19:35 by Bruce Tuskey
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.