VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Easier Method than the SaveSetting GetSetting commands

by Dreamcoding (5 Submissions)
Category: Registry
Compatability: VB Script
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

Want an easier way to save and retrieve the value of a control to and from the registry?
Why use SaveSetting(app.EXEName, "Settings", "Text1", Text1.Text)?
When you can use:
RegSave(Text1, Text1)
Ofcourse you can still use SaveSetting(blah,blah,blah,blah) when you want your program to remember something specific.
But for popular controls, I think you will find RegSave and RegGet to be easier. It's easier to use the name of the control than using your own naming convention.
Let me know if you find this method useful, if you do, please toss me a vote. If not, Ready Aim Fire with the comments. Thanks
Keywords: Saving Registry GetSetting SaveSetting Load Value Retrieve Value INI Settings

Side Effects
Can only save one property per control.

Rate Easier Method than the SaveSetting GetSetting commands

Upload

Download this snippet    Add to My Saved Code

Easier Method than the SaveSetting GetSetting commands Comments

No comments have been posted about Easier Method than the SaveSetting GetSetting commands. Why not be the first to post a comment about Easier Method than the SaveSetting GetSetting commands.

Post your comment

Subject:
Message:
0/1000 characters