Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-15 Thread Sven Barth via fpc-pascal
Am 15.08.2017 11:57 schrieb "Michael Van Canneyt" : > > > > On Tue, 15 Aug 2017, Sven Barth via fpc-pascal wrote: > >> Am 15.08.2017 11:17 schrieb "Michael Van Canneyt" : >>> >>> >>> >>> >>> On Mon, 14 Aug 2017, Graeme Geldenhuys wrote: >>> On

Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-15 Thread Michael Van Canneyt
On Tue, 15 Aug 2017, Graeme Geldenhuys wrote: On 2017-08-15 10:17, Michael Van Canneyt wrote: You ask, we deliver. Revision 36913, package fcl-json. Unit jsonini.pp contains TJSONIniFile. It is a descendent of TCustomIniFile. What a show off!!! :-P hehehe Nicely done Michael, that

Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-15 Thread Graeme Geldenhuys
On 2017-08-15 10:17, Michael Van Canneyt wrote: You ask, we deliver. Revision 36913, package fcl-json. Unit jsonini.pp contains TJSONIniFile. It is a descendent of TCustomIniFile. What a show off!!! :-P hehehe Nicely done Michael, that was very fast. :) Regards, Graeme -- fpGUI

Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-15 Thread Michael Van Canneyt
On Tue, 15 Aug 2017, Sven Barth via fpc-pascal wrote: Am 15.08.2017 11:17 schrieb "Michael Van Canneyt" : On Mon, 14 Aug 2017, Graeme Geldenhuys wrote: On 2017-08-04 08:47, Michael Van Canneyt wrote: Is this considered a bug or "by design"? This is by design.

Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-15 Thread Sven Barth via fpc-pascal
Am 15.08.2017 11:17 schrieb "Michael Van Canneyt" : > > > > On Mon, 14 Aug 2017, Graeme Geldenhuys wrote: > >> On 2017-08-04 08:47, Michael Van Canneyt wrote: Is this considered a bug or "by design"? >>> >>> This is by design. >>> As you said, whitespace is not so

Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-15 Thread Michael Van Canneyt
On Mon, 14 Aug 2017, Graeme Geldenhuys wrote: On 2017-08-04 08:47, Michael Van Canneyt wrote: Is this considered a bug or "by design"? This is by design. As you said, whitespace is not so well defined. Torsten, if you can, maybe switch to JSON files for config setting instead. I have

Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-14 Thread Michael Van Canneyt
On Mon, 14 Aug 2017, Graeme Geldenhuys wrote: On 2017-08-04 08:47, Michael Van Canneyt wrote: Is this considered a bug or "by design"? This is by design. As you said, whitespace is not so well defined. Torsten, if you can, maybe switch to JSON files for config setting instead. I have

Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-14 Thread Graeme Geldenhuys
On 2017-08-04 08:47, Michael Van Canneyt wrote: Is this considered a bug or "by design"? This is by design. As you said, whitespace is not so well defined. Torsten, if you can, maybe switch to JSON files for config setting instead. I have had fantastic success with JSON files in such a way.

Re: [fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-04 Thread Michael Van Canneyt
On Fri, 4 Aug 2017, Torsten Bonde Christiansen wrote: Dear List. I was trying to use the ini file for our program to store a single space " " as a value, but this does not seem to be posible. From the Wikipedia definition of INI file (https://en.wikipedia.org/wiki/INI_file#Whitespace)

[fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-04 Thread Torsten Bonde Christiansen
Dear List. I was trying to use the ini file for our program to store a single space " " as a value, but this does not seem to be posible. From the Wikipedia definition of INI file (https://en.wikipedia.org/wiki/INI_file#Whitespace) whitespace in values does not seem to be well defined, so