[fpc-pascal] TIniFile: how to save bool as string?
silvioprog
silvioprog at gmail.com
Tue Oct 7 21:13:55 CEST 2014
On Tue, Oct 7, 2014 at 3:58 PM, JB <josebenedito at gmail.com> 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 or
other) etc.
My patch keeps the current behavior of the INI class, but allows the
programmer to internationalize that to the your favorite way. You prefer
0/1, I prefer true/false, other prefer yin/yang etc., my patch allow to use
in any way. ;)
--
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141007/3a96c5c1/attachment.html>
More information about the fpc-pascal
mailing list