On Mon, 21 Jun 2010 16:17:32 +0200 Graeme Geldenhuys <[email protected]> wrote:
> [...Sorry, I think my first message's attachment was too big. This one > is smaller...] > > On 21/06/2010, Mattias Gaertner wrote: > > > > TXMLConfig reads by default the old config. > > Unless you use the same paths, no value is lost. > > > Op 2010-06-21 15:38, Mattias Gaertner het geskryf: > > Unless you use the same paths, no value is lost. > > Sorry Mattias, but you are wrong. TXMLConfig shows the exact same issue as > TJSONConfig. Here is the output after the test run. I attached the > xmlconfig test suite. > > Test is simple: > - load form 1 > - load form 2 > - close form 1 > which saves settings > - close form 2 > which saves settings and overwrites everything. Now I understand. Yes, TXMLConfig has the same "design flaw" as TStringList.LoadFromFile/SaveToFile. It is strange how you get used to such flaws and think it is normal. Mattias _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
