[fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Graeme Geldenhuys
Hi, I've studied the following documenation to make sure I'm using FindPath() correctly. http://www.freepascal.org/docs-html/3.0.0/fcl/fpjson/tjsondata.findpath.html Now, I have the following JSON data I omitted what is not relevant. { ...snip...

Re: [fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Michael Van Canneyt
On Wed, 8 Feb 2017, Graeme Geldenhuys wrote: Hi, I've studied the following documenation to make sure I'm using FindPath() correctly. http://www.freepascal.org/docs-html/3.0.0/fcl/fpjson/tjsondata.findpath.html since . is used as a delimiter between path segments, you indeed cannot find

Re: [fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Graeme Geldenhuys
On 2017-02-08 16:33, Michael Van Canneyt wrote: > One way is to allow to escape dots in the path. > But because every character is allowed in a javascript object property, that > would mean that \. can also be a correct property name, and so we need to > introduce \\ as an escape for \... > > It

Re: [fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Michael Van Canneyt
On Wed, 8 Feb 2017, Graeme Geldenhuys wrote: On 2017-02-08 16:33, Michael Van Canneyt wrote: One way is to allow to escape dots in the path. But because every character is allowed in a javascript object property, that would mean that \. can also be a correct property name, and so we need to

Re: [fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Graeme Geldenhuys
On 2017-02-08 16:47, Michael Van Canneyt wrote: > Indeed. If you experiment in the browser console: It might just be worth adding a small note about that "gotcha" in the FindPath documentation. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [fpc-pascal] FPC 3.0.X next to 2.6.4 on Linux

2017-02-08 Thread Krzysztof
Thank you guys! Sorry for such delay but finally had time to prepare seriously my enviromnent for FPC V3. Everything seems to work perfect (Lazarus IDE and FPC) but just curious question: Is it possible to get information which FPC version my project was compiled? By binary analysis or at runtime.

Re: [fpc-pascal] FPC 3.0.X next to 2.6.4 on Linux

2017-02-08 Thread Jonas Maebe
On 08/02/17 21:54, Krzysztof wrote: Thank you guys! Sorry for such delay but finally had time to prepare seriously my enviromnent for FPC V3. Everything seems to work perfect (Lazarus IDE and FPC) but just curious question: Is it possible to get information which FPC version my project was

Re: [fpc-pascal] FPC 3.0.X next to 2.6.4 on Linux

2017-02-08 Thread Krzysztof
2017-02-08 21:59 GMT+01:00 Jonas Maebe : > > > http://www.freepascal.org/docs-html/prog/progsu41.html (FPCVERSION) Excellent! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] KeyDown routine and Ctrl+Q

2017-02-08 Thread Jürgen Hestermann
I use a KEYDOWN routine in my main TFORM to check for the key Ctrl+Q: - procedure TForm1.FormKeyDown(Sender : TObject; var Key: Word; Shift : TShiftState); begin //

Re: [fpc-pascal] KeyDown routine and Ctrl+Q

2017-02-08 Thread Vojtěch Čihák
Hi, when you press CTRL+Q you will obtain two OnKeyDown events. The first with Key=17 (it is CTRL) and the second with Key=81 (Q). Both events will have ssCtrl in Shift.   V. __ Od: Jürgen Hestermann Komu:

Re: [fpc-pascal] KeyDown routine and Ctrl+Q

2017-02-08 Thread Bart
On 2/8/17, Jürgen Hestermann wrote: > > But when I type "Ctrl+Q" then "Key" is 17 instead of VK_Q (81). I get $51 for the key when I press Ctrl+Q (Win32). Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FPC 3.0.X next to 2.6.4 on Linux

2017-02-08 Thread Krzysztof
Last thing. Is possible that some FPC mixed version of .ppu or .o will be linked into my binary? I mean some third party stuff which I forgot clean up etc, you know how it is. Just wondering if final binary file can contain *.ppu and *.o compiled by different FPC versions

Re: [fpc-pascal] FPC 3.0.X next to 2.6.4 on Linux

2017-02-08 Thread Marco van de Voort
In our previous episode, Krzysztof said: > Last thing. Is possible that some FPC mixed version of .ppu or .o will be > linked into my binary? I mean some third party stuff which I forgot clean > up etc, you know how it is. Just wondering if final binary file can contain > *.ppu and *.o compiled by

Re: [fpc-pascal] class property accessor static

2017-02-08 Thread Luiz Americo Pereira Camara
2017-02-07 23:17 GMT-03:00 Paul Ishenin : > 07.02.2017 18:10, Mattias Gaertner wrote: > >> The getter/setter of a class-property must be "static" (Delphi >> compatible). >> If I understand "static" correctly, then "static" simply omits passing >> the class as parameter. So