|
-
Apr 22nd, 2001, 05:17 PM
#1
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
-
Apr 22nd, 2001, 05:27 PM
#2
Hyperactive Member
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.
-
Apr 22nd, 2001, 05:32 PM
#3
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
-
Apr 22nd, 2001, 05:42 PM
#4
Hyperactive Member
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.
-
Apr 22nd, 2001, 05:46 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|