Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 9:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ReadRegistryKey
PostPosted: April 21st, 2005, 5:02 pm 
Offline

Joined: April 21st, 2005, 4:47 pm
Posts: 43
Location: Southampton, UK
As an Opus newbie, I'm trying to get to grips with some of the differences in script syntax between Opus and that of vbs, jscript, InstallScript etc.

An area that could be enhanced in the online help is to state what is returned when whatever you are hunting for is not present at all. For example (modifying the example given using Opus):

var MyProgVer = ReadRegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\MyProgCo\\MyProg", "Version")

If this key / value is not present, what will myProgVer be set to? Similarly with GetINIFileData? (Yes, I could set up some scenarios and test these... sometimes life gets a tad too short. 8-) )

Thanks in advance, Linnet


Top
 Profile  
 
 Post subject:
PostPosted: April 21st, 2005, 8:41 pm 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
Hi Linnet

In either case, MyProgVer would be empty (hold no value).

HTH
Chris

_________________
Opus Resources and Services


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 26th, 2005, 9:37 am 
Offline

Joined: April 21st, 2005, 4:47 pm
Posts: 43
Location: Southampton, UK
Thanks Chris - you're absolutely right. In other scripting tools you may get "", null or "Not found" returned from a reg search. My underlying point was that it could be a helpful enhancement - as probably most of us are dealing with the chaos of the outside world as well as the ordered calm of the Opus arena - for DW to include equivalent examples in the help pages alongside the orthodox returned key/value/etc. 8-)

Linnet


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 67 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group