Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Dec 11, 2019 4:32 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Windows registry
PostPosted: Tue Jul 17, 2012 1:09 pm 
Offline
User avatar

Joined: Sat Jun 04, 2011 8:29 am
Posts: 387
I have code working that gets a specific registry location... and its default value.

For example to get a specific key I might access the default value from:

HKEY_CURRENT_USER\Software\MyCompanyName\MyAppName\AKEY

But in one case on the RIGHT SIDE in regedit... where the default is located... I had used that to store the Title and Path to most recently used files that were opened by the app.

So at this location:
HKEY_CURRENT_USER\Software\MyCompanyName\MyAppName\MRU

Under there is Title1, Title2, etc.

If I try areg = areg.Child("Title1") then I get a RegistryAccessException.

I don't think Child is the right way to get those values.

Ideas?

_________________
Currently using:
Windows XP Pro SP3
Real Studio 2011 Release 4.3 Enterprise
and
Mac OS 10.7.4
Real Studio 2011 Release 4.3 Enterprise
(finally also compiled on Mac)


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows registry
PostPosted: Tue Jul 17, 2012 2:06 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Child is for the subfolders on the left. Value is for the entries on the right.

somevalue = areg.Value("Title1")


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

All times are UTC - 5 hours


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

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