Results 1 to 8 of 8

Thread: Store variables after shutdown

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    18

    Question

    It is possible to keep/store information set by the user after my program is ended???

  2. #2
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Gig Harbor, WA; Posts: 89950
    Posts
    360

    Storing information

    Are you storing it in a database?
    If so
    Use the recordset.addnew, in the unload form command.
    The information would have to be stored somewhere, but not actually in the programs code.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    18

    Smile

    Thanks for your tip, but there´s no other way to store information set by the user?? (My program is already connected to a database, and i don´t want to create another one )

  4. #4
    Lively Member
    Join Date
    Jan 2000
    Posts
    123
    How much data are we talking about... If it isn't much you could prolly use the registry... or maybe not?

  5. #5
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523
    Registry or INI file would be a good thing to do (I would recommend Registry)

    $0.02

  6. #6
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    NY
    Posts
    497

    Try PropertyBag?

    I haven't tried it yet, but just today I was told I would need to use the PropertyBag property of an object or maybe just a form to store stuff that can be accessed the next time you run the app. I'm sure it puts it in the registry.
    end war
    stop greed

  7. #7
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb Cool + Simple

    Try to use this funtion that come with VB

    • GetSetting
    • SaveSetting


    This function is enable you to retrieve your customized data from/to registry.


  8. #8

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    18

    Cool Thanks

    Thanks Chris for a cool+simple solution;
    it worked perfectly...

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