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

2014-10-07 Thread silvioprog
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 or other) etc. My patch keeps the current beha

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

2014-10-07 Thread JB
I usually use integer cast to boolean values, sample: var cond: boolean; i: integer; begin cond := true; writeln(inttostr(integer(cond))); i := 0; if boolean(i) then writeln('true') else writeln('false'); end; best regards José Benedito JBS Soluções Consulting Systems

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

2014-10-07 Thread silvioprog
On Sat, Oct 4, 2014 at 6:28 AM, Reinier Olislagers < reinierolislag...@gmail.com> wrote: > On 03/10/2014 21:16, silvioprog wrote: > > When I use the TIniFile to save my configurations, it saves the boolean > > values as 0 and 1. > > > > Is there any way to save these values ​​as string (true/false

Re: [fpc-pascal] Trying to register a Windows Service gives error

2014-10-07 Thread Graeme Geldenhuys
Hi Michael, On 07/10/2014 12:12, Michael Schnell wrote: > Please don't use such excessive multi-line "declaimers" in a forum. I did notice those (and don't like it either), but unfortunately nothing I can do about it. It is my work address and our mail server injects those "disclaimers" _after_ w

Re: [fpc-pascal] Trying to register a Windows Service gives error

2014-10-07 Thread Michael Schnell
On 10/06/2014 05:12 PM, Graeme Geldenhuys wrote: ... Please don't use such excessive multi-line "declaimers" in a forum. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trying to register a Windows Service gives error

2014-10-07 Thread Sven Barth
Am 07.10.2014 09:55 schrieb "Michael Van Canneyt" : > > > > On Mon, 6 Oct 2014, Sven Barth wrote: > >> >> Am 06.10.2014 17:45 schrieb "Graeme Geldenhuys" : >> > >> > >> > >> > On 06/10/2014 16:36, Sven Barth wrote: >> > > That's the case since Windows Vista. Maybe you have disabled UAC >> > >> > In

Re: [fpc-pascal] Trying to register a Windows Service gives error

2014-10-07 Thread Michael Van Canneyt
On Mon, 6 Oct 2014, Sven Barth wrote: Am 06.10.2014 17:45 schrieb "Graeme Geldenhuys" : > > > > On 06/10/2014 16:36, Sven Barth wrote: > > That's the case since Windows Vista. Maybe you have disabled UAC > > Interesting, thanks for mentioning that. I know I've disabled UAC on my > work laptop

Re: [fpc-pascal] Is TFPList thread safe?

2014-10-07 Thread Michael Schnell
On 10/06/2014 05:55 PM, Dennis Poon wrote: function TThreadList.LockList: TList; begin Result:=FList; System.EnterCriticalSection(FLock); end; Yep. System.EnterCriticalSection is a procedure variable that is set according to the OS and arch the project is compiled for. In Linu

[fpc-pascal] mpcalc 7.4

2014-10-07 Thread franco
For anyone interested, a stable version 7.4 of mpcalc (unit for multiple-precision floating-point computations) is now available: ftp://ftp.freepascal.org/pub/fpc/contrib/mpcalc-7.4.zip or http://www.polarhome.com/~franco/mpcalc-7.4.zip Changes have been made to double factorial, ceil and floor