Re: [Lazarus] Codetools include search path(s)

2014-03-27 Thread Mattias Gaertner
On Thu, 27 Mar 2014 20:20:39 + Howard Page-Clark wrote: > I've been experimenting with the codetools example finddeclaration > project, using the codetools outside the IDE, and feeding FPC and > Lazarus source directory information via environment variables to the > CodeToolBoss constructo

Re: [Lazarus] Crosscompile Target Win32 error : ( /units/i386-win32/win32] Error 1)

2014-03-27 Thread Mattias Gaertner
On Fri, 28 Mar 2014 09:42:17 +0800 (PHT) "Allan E. Registos" wrote: >[...] > For Lazarus 1.0.14/Ubuntu 64 Precise > I have successfully installed crosscompile win32/i386 and can generate win32 > executable. > I upgraded to 1.2. > I've moved the old .lazarus to .lazarus_0.14 because Laz 1.2 is

[Lazarus] Crosscompile Target Win32 error : ( /units/i386-win32/win32] Error 1)

2014-03-27 Thread Allan E. Registos
Hi all, Good day, For Lazarus 1.0.14/Ubuntu 64 Precise I have successfully installed crosscompile win32/i386 and can generate win32 executable. I upgraded to 1.2. I've moved the old .lazarus to .lazarus_0.14 because Laz 1.2 is unable to upgrade it and was using instead the binary in that di

Re: [Lazarus] SQLQuery

2014-03-27 Thread Chris Crori
Done! I used the second query method on the beforepost event and it works fine I would like to try expanding the TSQLQuery to be able to use generator fields, can someone help me send the patch after? Thank you Michael for your help -Αρχικό μήνυμα- From: Chris Crori Sent: Thursday,

Re: [Lazarus] fcl-web deleted headers?

2014-03-27 Thread Michael Van Canneyt
On Thu, 27 Mar 2014, Leonardo M. Ramé wrote: Hi, I'm sending a custom header I called "Filename" to a Brook CGI (which uses TRequest from fcl-web) but I can't access that header. To my knowledge, the CGI protocol doesn't support the use of custom headers. Michael.--

[Lazarus] Codetools include search path(s)

2014-03-27 Thread Howard Page-Clark
I've been experimenting with the codetools example finddeclaration project, using the codetools outside the IDE, and feeding FPC and Lazarus source directory information via environment variables to the CodeToolBoss constructor, which works OK for simple source files. However, when looking for,

Re: [Lazarus] fcl-web deleted headers?

2014-03-27 Thread Leonardo M . Ramé
On 2014-03-27 16:22:37 -0300, Leonardo M. Ramé wrote: > Hi, I'm sending a custom header I called "Filename" to a Brook CGI > (which uses TRequest from fcl-web) but I can't access that header. > > Here's what I capture on the Network tab on Chrome's developer tools; > > POST /cgi-bin/gtir2/test/ H

[Lazarus] fcl-web deleted headers?

2014-03-27 Thread Leonardo M . Ramé
Hi, I'm sending a custom header I called "Filename" to a Brook CGI (which uses TRequest from fcl-web) but I can't access that header. Here's what I capture on the Network tab on Chrome's developer tools; POST /cgi-bin/gtir2/test/ HTTP/1.1 Host: 127.0.0.1:8080 Connection: keep-alive Content-Length

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Marc Santhoff
On Do, 2014-03-27 at 13:09 +0100, Michael Van Canneyt wrote: > > On Thu, 27 Mar 2014, Martin Frb wrote: > > In addition, you do not need the IfDef. > > But I want the ifdef :) > > The reason is that I very often add some code inside the $IFDEF to check for > assigned props, params and whatnot

Re: [Lazarus] SQLQuery

2014-03-27 Thread Chris Crori
On Thu, 27 Mar 2014, Chris Crori wrote: Hi guys, i use a SQLQuery in a project to connect to a Firebird database. In my table i use a BEFORE INSERT trigger for my primary ID field. In the same transaction i have to insert a detail row in another column. How can i find out the ID result af

Re: [Lazarus] SQLQuery

2014-03-27 Thread Michael Van Canneyt
On Thu, 27 Mar 2014, Chris Crori wrote: Hi guys,     i use a SQLQuery in a project to connect to a Firebird database. In my table i use a BEFORE INSERT trigger for my primary ID field. In the same transaction i have to insert a detail row in another column. How can i find out the ID result a

[Lazarus] SQLQuery

2014-03-27 Thread Chris Crori
Hi guys, i use a SQLQuery in a project to connect to a Firebird database. In my table i use a BEFORE INSERT trigger for my primary ID field. In the same transaction i have to insert a detail row in another column. How can i find out the ID result after post but before commit? ps : i tried ZE

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Michael Van Canneyt
On Thu, 27 Mar 2014, Mattias Gaertner wrote: On Thu, 27 Mar 2014 09:22:21 +0100 (CET) Michael Van Canneyt wrote: [...] I would like to be able to specify a code snippet that is inserted at the start and end of a procedure [...] Similarly, I'd like to be able to specify a code snippet to in

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Michael Van Canneyt
On Thu, 27 Mar 2014, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: If the compiler could track the current procedure (or function, or class.method etc.) name, then couldn't that be done with a macro? Then the app source would be a less-obtrusive: Procedure TMyClass.MyMethod; begin_

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Michael Van Canneyt
On Thu, 27 Mar 2014, Martin Frb wrote: On 27/03/2014 08:22, Michael Van Canneyt wrote: The intended use is that the IDE generates stuff like Procedure TMyClass.MyMethod; begin {$IFDEF LOGPROCESSFLOW}Log('Entering TMyClass.MyMethod');{$ENDIF} {$ENDIF LOGPROCESSFLOW}Log('Exiting TMyClas

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: If the compiler could track the current procedure (or function, or class.method etc.) name, then couldn't that be done with a macro? Then the app source would be a less-obtrusive: Procedure TMyClass.MyMethod; begin_logged end_logged; I prefer not to use macros.

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Martin Frb
On 27/03/2014 08:22, Michael Van Canneyt wrote: The intended use is that the IDE generates stuff like Procedure TMyClass.MyMethod; begin {$IFDEF LOGPROCESSFLOW}Log('Entering TMyClass.MyMethod');{$ENDIF} {$ENDIF LOGPROCESSFLOW}Log('Exiting TMyClass.MyMethod');{$ENDIF} end; If I have speci

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Mattias Gaertner
On Thu, 27 Mar 2014 09:22:21 +0100 (CET) Michael Van Canneyt wrote: >[...] > I would like to be able to specify a code snippet that is inserted at the > start and end of a procedure >[...] > Similarly, I'd like to be able to specify a code snippet to insert > before/after the procedure header:

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Michael Van Canneyt
On Thu, 27 Mar 2014, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: Hi, Is it possible to have the following in the code tools: I would like to be able to specify a code snippet that is inserted at the start and end of a procedure (after begin, before end keywords). The code snippet s

Re: [Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: Hi, Is it possible to have the following in the code tools: I would like to be able to specify a code snippet that is inserted at the start and end of a procedure (after begin, before end keywords). The code snippet should contains some macros like $(CLASSNAME) $(ME

[Lazarus] RFC: Code tools Feature?

2014-03-27 Thread Michael Van Canneyt
Hi, Is it possible to have the following in the code tools: I would like to be able to specify a code snippet that is inserted at the start and end of a procedure (after begin, before end keywords). The code snippet should contains some macros like $(CLASSNAME) $(METHODNAME). Conceivably, oth