Re: [Lazarus] Looking for JSON and XML libraries for storing records and some demos.

2011-11-09 Thread Mattias Gaertner
On Wed, 9 Nov 2011 20:30:09 + Frank Church wrote: >[...] > I am looking for a JSON or XML TDataset compatible library. What means XML TDataset compatible? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazar

Re: [Lazarus] Looking for JSON and XML libraries for storing records and some demos.

2011-11-09 Thread Frank Church
On 8 November 2011 09:56, wrote: > > > On Tue, 8 Nov 2011, Frank Church wrote: > > I want to learn how to store records (the database kind as well if >> available) in JSON and XML format. Are there some Lazarus/FPC libraries >> and >> demos which do that? >> > > That depends. Your request is rat

Re: [Lazarus] In NeedRTLAnsi, can GetACP return CP_UTF8 on Windows?

2011-11-09 Thread Felipe Monteiro de Carvalho
On Wed, Nov 9, 2011 at 8:04 PM, cobines wrote: > So can the implementation of NeedRTLAnsi on Windows be changed to > return always True? Golden rule: If it is not broken, don't change it. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Laz

Re: [Lazarus] RunError(53216) in TOpenDialog

2011-11-09 Thread Howard Page-Clark
On 09/11/11 6:21, Anders E. Andersen wrote: I uninstalled win64 lazarus and installed win32 lazarus and rebuild my project. It works fine in 32 bit! Then I uninstalled that and reinstalled 64 bit lazarus and rebuild again. The program crashes again. In which case you have uncovered a bug in 6

Re: [Lazarus] In NeedRTLAnsi, can GetACP return CP_UTF8 on Windows?

2011-11-09 Thread cobines
2011/11/8 Felipe Monteiro de Carvalho : > On Tue, Nov 8, 2011 at 9:50 PM, cobines wrote: >> FNeedRTLAnsi:=GetACP<>CP_UTF8; > > This is used by FileUtil in Windows for Windows 9x support > >> Is it possible that CP_UTF8 will ever be returned by GetACP? > > I've never heard of a Windows localization

Re: [Lazarus] RunError(53216) in TOpenDialog

2011-11-09 Thread Anders E. Andersen
Den 08-11-2011 18:48, Howard Page-Clark skrev: On 08/11/11 12:30, Anders E. Andersen wrote: I am using Lazarus 0.9.30.2 on Windows 7 Home premium 64 bit. When I hover with the mouse over a word document in TOpenDialog I get the runerror. I compile and run your project without errors on Win7.

Re: [Lazarus] JSON float saving scientific value

2011-11-09 Thread silvioprog
2011/11/6 tcoq : [...] > or by implementing your new type yourself, something like > "TJSNExtFloatNumber" which overrides the GetAsString function. > The second way should work without changing the JSON base code. However > loading a JSON stream will still get you the base TJSONFloatNumber. Yeah

Re: [Lazarus] JSON float saving scientific value

2011-11-09 Thread tcoq
Indeed, the localization is an issue, but it is possible to force FloatToStr to output a decimal '.' in all cases, whatever the localization. Isn't it DecimalSeparator? Change DecimalSeparator to '.'. Something like this (untested/uncompiled pseudo-code): Function FloatToStrMine( aNumber: Doubl

Re: [Lazarus] TSynEdit bug in destructor?

2011-11-09 Thread Lukasz Sokol
On 08/11/2011 16:00, Mattias Gaertner wrote: > [...] > > You should not free components while they process events. > > Use instead: > > Application.ReleaseComponent(Ed); > > This will free the component after the event. > [...] Thanks! This did the trick for me too (background : my appli

Re: [Lazarus] TReplaceDialog: feature request

2011-11-09 Thread Bart
@Maxim and Mattias > You use fresh Lazarus revision, don't you? I'm at revision 33269. Revisions are going very fast this time of year, 158 revisions in 6 days... I'll correct some issues in my patch first and then I'll update. Bart -- ___ Lazarus mai

Re: [Lazarus] TReplaceDialog: feature request

2011-11-09 Thread Mattias Gaertner
On Wed, 9 Nov 2011 01:09:29 +0100 Bart wrote: > Yeah, > > Nice one. I opened the replagedialogform in the IDE > (lcl/relacedlgunit.pas), and somehow this action added to package LCL > Base a dependency on LCL (10 times!), which caused a circular > dependency in the installed packages. > I manual