|
-
Jan 26th, 2000, 10:59 AM
#1
Thread Starter
Junior Member
Say I had the following:
- Checkbox1 is CHECKED
- Checkbox2 is NOT CHECKED
- Text1 has the text "Save me"
How would I save it that way to a preference file so I could load it for use later? Please help me, and the names of the elements are as listed, please keep them the same in your example, so I can quickly identify them. If not, don't worry about it.
------------------
Webmaster Czaries
http://www1.50megs.com/css
-
Jan 26th, 2000, 11:14 AM
#2
Addicted Member
Look in the help for SaveSetting and GetSetting function. it saves information in the windows registry.
Hope that helps!
-
Jan 26th, 2000, 10:35 PM
#3
Hyperactive Member
Czaries,
Here's an example of saving the form position (in form_unload) and then retrieving it (in form_load).
Code:
Form_Unload()
With Me
SaveSetting "KMSystems", sSectionName, "Top", Me.Top
SaveSetting "KMSystems", sSectionName, "Left", Me.Left
End With
Form_Load()
sSectionName = username & "-Startup"
With Me
.Top = GetSetting("KMSystems", sSectionName, "Top", 0)
.Left = GetSetting("KMSystems", sSectionName, "Left", 0)
End With
-
Jan 27th, 2000, 07:47 AM
#4
Thread Starter
Junior Member
Thanks guys for the help, but I meant like actually writing the data to a file, so the users could save/load multiple prefrence settings.
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
|