ChristianJ
asked on
Save listitems to the register
Hi
I have a ListView containing 10 items; I want these items to be saved in the register. And if to two (or more items) accidentally has the same name the items should be saved as the same key.
(I use VB6)
/ChristianJ
I have a ListView containing 10 items; I want these items to be saved in the register. And if to two (or more items) accidentally has the same name the items should be saved as the same key.
(I use VB6)
/ChristianJ
By the way, there are examples of these methods in the VB Help Pages...
Cheers!
Cheers!
ASKER
I am already aware of the GetSetting, GetAllSettings, and SaveSetting methods. I am not sure if you understood what I wanted. I try to explain again:
I have a ListView with 10 items. When pressing a button all these items should be saved into the registry. When using what you suggested just one item was saved into the registry. What I want is the items to appear like this and if two items accidentally has the same name just one of them should be saved.
[Standard]
FavPath1 "Listitem1"
FavPath2 "Listitem2"
FavPath3 "Listitem3"
FavPath4 "Listitem4"
FavPath5 "Listitem5"
FavPath6 "Listitem6"
....
I have a ListView with 10 items. When pressing a button all these items should be saved into the registry. When using what you suggested just one item was saved into the registry. What I want is the items to appear like this and if two items accidentally has the same name just one of them should be saved.
[Standard]
FavPath1 "Listitem1"
FavPath2 "Listitem2"
FavPath3 "Listitem3"
FavPath4 "Listitem4"
FavPath5 "Listitem5"
FavPath6 "Listitem6"
....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the points! Glad I could help!
Cheers!
Cheers!
The methods are GetSetting, GetAllSettings, and SaveSetting.
formats are:
GetSetting(appname, section, key[, default])
GetAllSettings(appname, section)
SaveSetting appname, section, key, setting
Hope this helps!
Cheers!