VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Save and retieve registry settings.

by John W (7 Submissions)
Category: Registry
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Fri 25th January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Save and retieve registry settings.

Rate Save and retieve registry settings.




'~~~~~~~~~ THE FOLLOWING DISPLAYS THE VALUE OF THE KEY ~~~~~~~~~
MsgBox "The registry key says: " & GetSetting(App.Title, "MY_SECTION", "MY_KEY", "This is the first time you have ran this code snippet!"), vbExclamation
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

'~~~~~~~~~~~ THE FOLLOWING SAVES THE VALUE OF THE KEY ~~~~~~~~~~~
SaveSetting App.Title, "MY_SECTION", "MY_KEY", "The last time this key was saved was at " & Now()
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
End Sub

Download this snippet    Add to My Saved Code

Save and retieve registry settings. Comments

No comments have been posted about Save and retieve registry settings.. Why not be the first to post a comment about Save and retieve registry settings..

Post your comment

Subject:
Message:
0/1000 characters