Sounds like your program must be re-writing the INI file on exit with the original values then.
As for your one line of code it looks like it's missing something. Compare:
iniFile.WriteString(Section, Name, Value);
Thank you for your response.
That's what I thought, too, except the program contains no code devoted to writing except what I quoted. I even searched for the words "Write" and "INI" to be sure. It's an extremely basic notepad-type application with tabbed text boxes. The INI file stores tab labels that have been changed by the user.
In terms of the "Name" section, that seems to apply to DoWriteString rather than WriteString, as far as I can tell. I drew the INI control on Form1 and then provided the section name ("Settings") as a property in the properties window.
If this is a bug -- a big if, because I'm a total newb! -- the way to reproduce it would be to create two forms, add an INI control to Form1, then try to overwrite some preexisting values via Form2. The new data will be saved to disk from Form2, but then magically revert when the program exits.
Thanks.