Re: [fpc-pascal] TIniFile: how to save bool as string?

2014-10-08 Thread Michael Van Canneyt
On Tue, 7 Oct 2014, silvioprog wrote: On Tue, Oct 7, 2014 at 3:58 PM, JB wrote: I usually use integer cast to boolean values, sample: [...]  But the main ideia to change it is allow any type supported by SysUtils, like integer (-1/0 or 0/1), strings (true/false, yes/no, y/n, sim/não

Re: [fpc-pascal] TIniFile: how to save bool as string?

2014-10-08 Thread silvioprog
On Wed, Oct 8, 2014 at 8:40 AM, Michael Van Canneyt wrote: [...] > So, we'll need a property that tells TIniFile to write using the new > properties (by default false), and check the value of this property when > writing new boolean values. Very nice idea Michael! I'll send a new patch with thi