Results 1 to 2 of 2

Thread: Save/Open Multiple Things

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482
    Any one know how i can save these things IE:

    txtbox.text
    option1.value
    CapText.caption

    anyway i can save all these to one file, then open them
    I have alot of things (about 20) so i need someway
    where i can add/delete more things to save and open.

    Thanks!

    BTW(by the way), It can be a any file IE ini,txt

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305
    you might be better off saving them to the registry.
    try using something like the following.

    Code:
    SaveSetting App.Title, "SavedData", "Text1.Text", Text1.Text
    Text1.Text = GetSetting(App.Title, "SavedData", "Text1.Text")
    watch out on the first time it is run, though, because you could get a bad error. In order to prevent that from happening, put this line before every line with GetSetting:

    Code:
    On Error Resume Next
    This is pretty useful. If you want more help, create a new project with the vb application wizard and look at what happens when it loads and unloads. It saves the position of the forms by saving the values to the registry.

    good luck,

    bob

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