VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A very simple way to add info to the registry and call it back into your application when needed an

by Shayne Cairns (5 Submissions)
Category: Registry
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 24th February 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

A very simple way to add info to the registry and call it back into your application when needed and delete the entry aftawards.

Rate A very simple way to add info to the registry and call it back into your application when needed an



' Integer to hold counter.

' Place some settings in the registry.
SaveSetting appname:="MyApp", section:="Startup", _
Key:="Top", setting:=75
SaveSetting "MyApp", "Startup", "Left", 50
' Retrieve the settings.
MySettings = GetAllSettings(appname:="MyApp", section:="Startup")
   For intSettings = LBound(MySettings, 1) To UBound(MySettings, 1)
      Debug.Print MySettings(intSettings, 0), MySettings(intSettings, 1)
   Next intSettings
DeleteSetting "MyApp", "Startup"


Download this snippet    Add to My Saved Code

A very simple way to add info to the registry and call it back into your application when needed an Comments

No comments have been posted about A very simple way to add info to the registry and call it back into your application when needed an. Why not be the first to post a comment about A very simple way to add info to the registry and call it back into your application when needed an.

Post your comment

Subject:
Message:
0/1000 characters