Posted by Bobp12404 on August 09, 2008
In Reply to Re: Write/copy ini section to registry posted by John, DelphiLand Team on
August 09, 2008
: ...you mean that [XSettings]color can have one of the following 3 string values: 'blue',
'red' or 'green'?
: And the same for the other 2 Sections/Ident parts: [YSettings]range and [Zsettings]when ?
: ...or do you mean something else?
John, thanks for clarifying, and sorry for the bad example. Hopefully this is better:
From the ini file:
[Images] G:\Pics\culled\bird.jpg=Unique brief description of this image C:\Pics\Latest\bird.tif=Original image as shot from camera [Music] C:\Songs\Jazz\a_name_of_a_song.mp3=Unique brief description of this song E:\Songs_Saved\Guitar\a_name_of_a_song.wav=Unique brief description of this song G:\Songs from another directory\Drums\a_name_of_a_song.aac=Wow they were loud
To these registry keys:
HKEY_CURRENT_USER\Software\MyApp\Images
HKEY_CURRENT_USER\Software\MyApp\Music
Essentialy, I have some listviews which are loaded from text/ini files that I want to be able to 'backup' to the registry. Or at least have another option, distinct from ini, for saving the data. I have just heard about TRegIniFile, and it sounds like it ought to be able to do both, but I don't understand how to use it to write to the registry.
Thanks again,
Bob
Related articles
Follow Ups