[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

Reading from Registry 80 Points

Hi, got this code from experts:
 
     Private Sub DoIt_Click()
         DoIt.Checked = Not (DoIt.Checked)
         SaveSetting "MyApp", "Startup", "MenuItem", DoIt.Checked
     End Sub

     Private Sub Form_Load()
         DoIt.Checked = GetSetting("MyApp", "Startup", "MenuItem", True)
     End Sub

My question is how do i read the registry: GetSetting("MyApp", "Startup", "MenuItem", True) to determine if the value is "True" and if it is "True" i would like my program to make a message to show this ?
If anyone could show me how to do this with a little working code, then i have 80 points for you !
Thanks
ssi49
0
ssi49
Asked:
ssi49
1 Solution
 
plasmatekCommented:
ok.
You can save a setting with
SaveSetting "MyApp","Startup","MenuItem",DoIt.Checked

Then you can get it with

dim a as boolean
a = getsetting("MyApp","Startup","MenuItem",DoIt.Checked)

if a = true then
msgbox "Its checked!"
else
msgbox "Its not checked!"
end if
0
 
ssi49Author Commented:
Hey Plasmatek:)
Did just what i wanted it to do ! Thank You and Sorry i didn't get back sooner, had to run an errand.
ssi49
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now