VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Easier Method than the SaveSetting GetSetting commands

Dreamcoding  (5 Submissions)   Registry   VB Script   Beginner   Wed 3rd February 2021

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 (9(9 Vote))
Easier Method than the SaveSetting GetSetting commands.bas

Easier Method than the SaveSetting GetSetting commands Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters