Results 1 to 3 of 3

Thread: Saving Variable Values

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Posts
    230
    Is there a way to save values of variables (aside from storing values in a db or txt file) when a VB app closes such that when it is run again, the defaults are what was saved the last time the program was used.

    Shawn Hull
    VB6, SP3 (Professional Edition)

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523
    You have to use some kind of external "data-keeper" like db, txt, ini or Registry (which I would strongly recommend). There is no other way to make the vb remember the values of variables (none that I know of at least and I'm 99.9% sure I'm right )

  3. #3
    Lively Member
    Join Date
    Sep 2000
    Location
    Singapore
    Posts
    78
    Saving the variables into the registry will be more suitable for you if you dun want to save into files. I did a small screensaver program before and use the registry to save the settings changes made by the user.

    Try to look into this 2 functions:

    GetSetting()
    SaveSetting()

    Hope this helps...

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