Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fetching Registry Settings

Status
Not open for further replies.

Slarti

Programmer
Feb 5, 2003
45
GB
I'm saving Registry Setings using the following code SaveSetting App.Title, "User Settings", vObject, sValue and can see via regedit that these are saved. My problem is retrieving them. I'm using GetSetting App.Title, "User Settings", "Highlight State", g_bButtonHighlight to try to get the value from the Reg into g_bButtonHighlight but getting nowhere. The code doesn't crash but retrieves nothing. Where am I going wrong?
 
Hello,
U have written:
SaveSetting App.Title, "User Settings", vObject, sValue

GetSetting App.Title, "User Settings", "Highlight State", g_bButtonHighlight

Here what is "Highlight State", is it the default value?
Actuall ur code should have been
GetSetting App.Title, "User Settings", g_bButtonHighlight, "Highlight State"

the key first and then the default value.

Hope this will solve ur problem.

Regards
Soumya
 
Soumya,

Thanks for your reply. I think I've got it all wrong! What I'm trying to do is create a folder in the Reg called User Settings and have a user setting called Highlight State. Is my SaveSetting correct?

Slarti.
 
My SaveSetting is SaveSetting App.Title, "User Settings", vObject, sValue where vObject is intended as the Object/File and sValue the Value I want recorded in that object.
 
I've seen the error of my ways and all sorted. Thanks for your help. Slarti.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top