Storing application settings lazarus / 32-Linux ---------------------------------------------------------------------- fpcoder · 2013-10-11 20:22 I'm writing a program that will run on both Linux and Windows. Windows has the registry but that wont work with Linux. I want one type of settings storage that works on both systems. Is this possible? ---------------------------------------------------------------------- howardpc · 2013-10-11 20:29 On the Misc page of the Component Palette there are two components that you may want to explore: TIniPropStorage TXMLPropStorage The example for mru storage may also give you some pointers. It uses TIniFile: ...\lazarus\components\mrumenu\mrumanager.pp ---------------------------------------------------------------------- fpcoder · 2013-10-11 21:31 Thanks! Quote from: howardpc on October 11, 2013, 10:29:40 pmOn the Misc page of the Component Palette there are two components that you may want to explore: TIniPropStorage TXMLPropStorage The example for mru storage may also give you some pointers. It uses TIniFile: ...\lazarus\components\mrumenu\mrumanager.pp ---------------------------------------------------------------------- vladvons · 2013-10-11 21:51 look also at Component Palette->System->TXMLConfig http://wiki.freepascal.org/xmlconf ---------------------------------------------------------------------- Leledumbo · 2013-10-12 01:37 I always use T*PropStorage (mostly TIniPropStorage because using XML as configuration makes it difficult to edit by hand) as they are the real RAD style of doing this. Very easy to use and easy to add custom values as well. ---------------------------------------------------------------------- vladvons · 2013-10-12 05:54 Is it possible to work with Stream instead of File in TPropStorage ? I want to save/restore settings using database ---------------------------------------------------------------------- Leledumbo · 2013-10-12 08:16 QuoteIs it possible to work with Stream instead of File in TPropStorage ?I guess not, after all they're concrete classes. Perhaps you can implement a db backend descendant for TFormPropertyStorage (base class for TIniPropStorage and TXMLPropStorage, say TDBPropStorage or something.