Re: [Lazarus] CodeTools error when using 'section' keyword

2014-10-22 Thread Sven Barth
Am 21.10.2014 23:32 schrieb Mattias Gaertner nc-gaert...@netcologne.de: Michael Ring m...@michael-ring.org hat am 21. Oktober 2014 um 22:36 geschrieben: program hello; const devcfg3: longWord = DEVCFG3_DEFAULT; section '.devcfg3'; begin end. is a program that compiles

Re: [Lazarus] CodeTools error when using 'section' keyword

2014-10-22 Thread Michael Ring
I did a little digging, Sven is right, this is only for embedded targets; I found the following in systems.pas: { all embedded systems } systems_embedded = [system_i386_embedded,system_m68k_embedded, system_alpha_embedded,system_powerpc_embedded,

Re: [Lazarus] How do I tell codetools to use implicitly loaded unit for code complesion?

2014-10-22 Thread Michael Ring
Thank you for the hint on macros, I will see if I can come up with a patch. The lookup of the controllerunitstr looks like the 'right' solution, for my purposes it would be enough to simply add the value of -Wp, but this would only help for mipsel target, for arm there usually exists a

Re: [Lazarus] TAChart cannot zoom

2014-10-22 Thread Leonardo M. Ramé
El 21/10/14 a las 15:32, Werner Pamler escibió: You have added a ChartToolset and have assigned it to the chart. This deactivates the built-in toolset which is responsible for default zooming and panning. All you have to do is to add another ZoomDragTool to your toolset. To make it respond to

Re: [Lazarus] How do I tell codetools to use implicitly loaded unit for code complesion?

2014-10-22 Thread Michael Ring
OK, I found out what is going on. FindControllerUnit in components/codetools/definetemplates.pas already contains a copy of the arm version of cpuinfo.pas but it does not include the mips version of cpuinfo.pas. so FindControllerUnit does not find a match and returns an empty string - the

[Lazarus] fpspreadsheet bug - and fix

2014-10-22 Thread Michael Van Canneyt
Hi, No idea who is the current maintainer of fpspreadsheet, but to those involved: I updated - after a long time - my version of fpspreadsheet. There is a bug (apart from breaking backwards compatibility) which makes it difficult to use: fpexprparser depends on unit fpsfunc. fpsfunc depends

[Lazarus] TFMTBCDField problem

2014-10-22 Thread Chris Rempas
Hi guys!    I am using SQLdb with Firebird 2. I have a DECIMAL(9,5) field that SQLdb makes it TFMTBCDField automatically. Mt problem is that i cannot save any value to the database. If i let the field with the NULL value, my record is saved fine, if i try to put any value and save the record,

[Lazarus] fpspreadsheet bug - and fix

2014-10-22 Thread Werner Pamler
No idea who is the current maintainer of fpspreadsheet I'm doing most of the development currently, no idea if I am the maintainer then... Thanks for pointing me to this bug which I've seen for some time, but did not take seriously enough. But your solution is not working here, in fact I

[Lazarus] web push?

2014-10-22 Thread Anthony Tekatch
What would be the best (Lazarus/Freepascal) way to push data to a web page? I would like a cgi-bin application that sends updates to the client browser telling of things like: - display the modification time of a file on the server - display statistics of items from the server side without

[Lazarus] bcd to variant

2014-10-22 Thread Chris Rempas
Hi!     I am trying to have some decimal fields in my database, causing BCD and FMTBCD field type to pop up to my program. I am not able to save any data of this kind to my database, as i get an error invalid variant type cast.    I tried any workaround i could think of for the last 5 days,