![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.