|
-
Jan 13th, 2000, 09:04 PM
#1
Thread Starter
Member
-
Jan 13th, 2000, 09:40 PM
#2
Hyperactive Member
save the checkbox.value somewhere (0 if UNchecked, 1 if checked)
Then when you reload the form you should let you app check that value and set checkbox.value to it....
If you use that database for user-information I would not recommend using it for system settings...
I recommend using another database or even better an ini-file
-
Jan 13th, 2000, 10:29 PM
#3
Hyperactive Member
I wouldn't use an ini file, why mess with API calls plus too many people know to mess with them. I would just write the checkbox's value to a nonsense file. It depends on how secure you want to be, you can even hide it in a bunch of nonsense characters :-)
-
Jan 13th, 2000, 10:30 PM
#4
Fanatic Member
-
Jan 14th, 2000, 12:14 PM
#5
Guru
Code:
Private Sub Form_Load()
Check1.Value = GetSetting(App.Title, "mysection", "check1", 0)
End Sub
Private Sub Form_Unload(Cancel As Integer)
SaveSetting App.Title, "mysection", "check1", Check1.Value
End Sub
-
Jan 14th, 2000, 12:53 PM
#6
Fanatic Member
That's sorta what i had in mind. But if you have 40 checkboxes (?), you're gonna have a lotta lines in the registry.
Adding all the values into one string, and then reading each one later again, alows you to have 40 checkboxes' values in one registry entry!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|