Results 1 to 5 of 5

Thread: GetSetting/SaveSetting issue...

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    I'm using the GetSetting/SaveSetting functions to store and retrieve app data. When I run the app on my laptop, where I write my apps, it works perfectly, but when I moved it to another PC, it doesn't work all the time, any ideas why not?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  2. #2
    Hyperactive Member
    Join Date
    Apr 2001
    Posts
    315
    The Get and Save settings write to the registry. Anything you Save at home will not be available at work. There is also an issue on NT Worstations because Get and Save write to HKEY_CURRENT_USER (/ VB and VBA Program Settings) instead of HKEY_LOCAL_MACHINE. Use Regedit (in Start / Run) to view your settings.

  3. #3

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    oh, yes, I realize that, but what happens is when my app unloads, it writes to the registry the position of the columns in the listview I have, and I checked using regedit, it does write in the values I want...The problem is, when I start the app back up, its supposed to read in that same key, and sort the columns accordingly, but it doesn't do it on my other PC...
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    Hyperactive Member
    Join Date
    Apr 2001
    Posts
    315
    I assume that when you say you checked with Regedit you mean on both machines. Just because it doen't sort does not mean that the values are not being read. It is probably time to step through it with Debug, Debug.Print and Regedit and check right after you save AND after you exit your app.

  5. #5

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    yes, yes...done all that...its wierd, I have it setup to save the name of the last opened file to the registry, and load it the nex time, and that works, but for some reason, this doesn't...
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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