For Delphi newbies (who are also new to programming in general), is TStringList a suitable class for simple data management?
For Delphi newbies (who are also new to programming in general), is TStringList a suitable class for simple data management?
I mean, it's pretty simple to explain (and understand) how to put a TStringList member in the form's private section, and then put Create + LoadFromFile in OnCreate, and SaveToFile + Free in OnClose.
After that you can easily play with the Values property to get and set various data. (The "Name=Value" structure if the file is pretty easy to understand too).
Right now I cannot think of any simpler way to just load and save data directly from an application. Any other suggestions?
I mean, it's pretty simple to explain (and understand) how to put a TStringList member in the form's private section, and then put Create + LoadFromFile in OnCreate, and SaveToFile + Free in OnClose.
After that you can easily play with the Values property to get and set various data. (The "Name=Value" structure if the file is pretty easy to understand too).
Right now I cannot think of any simpler way to just load and save data directly from an application. Any other suggestions?
Comments
Post a Comment