Re: [Lazarus] how I can use the component TSynEditAutoComplete

2012-01-06 Thread Martin
On 06/01/2012 23:28, Reinier Napoles Martinez wrote: I want to do something like this: arrayd and when ,I pressed ctrl+j insert for example: array[0|..1] of Type; and when press tab, move the cursor to the next param array[0..1|] of Type; //Tab array[0..1] of Type|; like the Lazarus Code ed

Re: [Lazarus] How to get field-names of a table ?

2012-01-06 Thread Maximiliano Duarte
No if you need an new field, use a calcfield. Add this doble click on tsqlobject, new field, put name, in oncalcfield event fill this with anythinks Enviado desde mi BlackBerry -Original Message- From: Koenraad Lelong Date: Fri, 06 Jan 2012 15:31:17 To: Reply-To: Lazarus mailing list

[Lazarus] how I can use the component TSynEditAutoComplete

2012-01-06 Thread Reinier Napoles Martinez
Hi ,how I can use the component TSynEditAutoComplete. I'm looking the sourceeditor.pp. I want to do something like this: arrayd and when ,I pressed ctrl+j insert for example: array[0|..1] of Type; and when press tab, move the cursor to the next param array[0..1|] of Type; //Tab array[0..1]

Re: [Lazarus] Conditional define via Build mode?

2012-01-06 Thread Elazar Dornelles Ceza
>> How can I set DEBUG only when in Debug build mode? I had a look at the >> wiki page and the Project Options, Build Macros but I'm a bit lost. > You have to separate IDE macros and FPC macros. > FPC macros are defined via the Compiler Options / Custom options, e.g. > -dDEBUG. Hi, delphi has IFOT

Re: [Lazarus] Problem with JVM and/or native types

2012-01-06 Thread Sven Barth
On 03.01.2012 18:30, Mattias Gaertner wrote: On Thu, 29 Dec 2011 13:23:08 +0100 Sven Barth wrote: [...] ### TCodeToolManager.HandleException: "Bezeichner nicht gefunden: TObject" at Line=2 Col=6 in "/mnt/data/source/fpc/fpc-jvm/rtl/android/jvm/androidr14.pas" But there is no "TObject" at that

[Lazarus] RE : How to get field-names of a table ?

2012-01-06 Thread Ludo Brands
> > When you open the query you object is deleted. > > If yuo need only a field name is > > > > Query1.sql.text:= "select * from mytable"; > > Query1.open; > > Name:=Query1.Fields[0].fieldname; > > > > Thanks for your response, but it does not work. > It works if you don't define your fields you

Re: [Lazarus] Conditional define via Build mode?

2012-01-06 Thread Reinier Olislagers
On 6-1-2012 16:27, Mattias Gaertner wrote: > On Fri, 06 Jan 2012 16:01:50 +0100 > Reinier Olislagers wrote: >> I'm trying to set a conditional symbol depending on build mode. I've got >> Debug and Release build modes defined. >> >> In code, I can do this: >> {$DEFINE DEBUG} >> {$IFDEF DEBUG} >

Re: [Lazarus] Conditional define via Build mode?

2012-01-06 Thread Mattias Gaertner
On Fri, 06 Jan 2012 16:01:50 +0100 Reinier Olislagers wrote: > Hi all, > > I'm trying to set a conditional symbol depending on build mode. I've got > Debug and Release build modes defined. > > In code, I can do this: > {$DEFINE DEBUG} > {$IFDEF DEBUG} > writeln('Debug: ' + Message); > {

[Lazarus] Conditional define via Build mode?

2012-01-06 Thread Reinier Olislagers
Hi all, I'm trying to set a conditional symbol depending on build mode. I've got Debug and Release build modes defined. In code, I can do this: {$DEFINE DEBUG} {$IFDEF DEBUG} writeln('Debug: ' + Message); {$ENDIF DEBUG} How can I set DEBUG only when in Debug build mode? I had a look at t

Re: [Lazarus] How to get field-names of a table ?

2012-01-06 Thread Koenraad Lelong
On 06-01-12 01:20, Maximiliano Duarte wrote: When you open the query you object is deleted. If yuo need only a field name is Query1.sql.text:= "select * from mytable"; Query1.open; Name:=Query1.Fields[0].fieldname; Thanks for your response, but it does not work. The table I use has more than