Results 1 to 4 of 4

Thread: Saving Input Data

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    16

    Post

    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

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    Look in the help for SaveSetting and GetSetting function. it saves information in the windows registry.

    Hope that helps!

  3. #3
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    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

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    16

    Post

    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
  •  



Click Here to Expand Forum to Full Width