Re: [lazarus] parameterized queries

2006-08-22 Thread Zlatko Matic
I understand your way. I was doing very similar thing in MS Access with pass-through queries:) and was always wondering why Microsoft didn't enable parameters in pass-through queries... I am just reading a book about Delphi (Paul Kimmel: "Building Delphi 6 Applications) and there is described th

Re: [lazarus] True fullscreen mode

2006-08-22 Thread Marc Weustink
Sorry for the late responce, I was away for a few days. Mattias wrote: On Thu, 17 Aug 2006 14:51:17 +0200 Marc Weustink <[EMAIL PROTECTED]> wrote: Mattias wrote: [snip] I added those functions to gtkproc.pp: procedure SetWindowFullScreen(AForm: TCustomForm; const AValue: Boolean); procedu

[lazarus] paradox access fron lazarus?

2006-08-22 Thread Jorge Ortiz
I have a application in delphi. The application use bde ( paradox ). I will doe new version in lazarus but I can not read the old record. _ MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/ ___

Re: [lazarus] parameterized queries

2006-08-22 Thread Alexandre Leclerc
2006/8/22, Alexandre Leclerc <[EMAIL PROTECTED]>: that other method. The example you provided could be as dangerous with I mean the example of Joost. -- Alexandre Leclerc _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] parameterized queries

2006-08-22 Thread Alexandre Leclerc
2006/8/22, Zlatko Matic <[EMAIL PROTECTED]>: What is wrong with passing parameters through ParamByName, such as: SQLQuery1.Params.ParamByName('parameter').AsString:='blah, blah' ? There is nothing wrong: I never used it nor knew it ever existed (this is the reason of my initial answer). But th

Re: [lazarus] parameterized queries

2006-08-22 Thread Zlatko Matic
What is wrong with passing parameters through ParamByName, such as: SQLQuery1.Params.ParamByName('parameter').AsString:='blah, blah' ? Regards, Zlatko - Original Message - From: "Alexandre Leclerc" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 22, 2006 8:43 PM Subject: Re: [lazarus]

Re: [lazarus] parameterized queries

2006-08-22 Thread Alexandre Leclerc
2006/8/21, Joost van der Sluis <[EMAIL PROTECTED]>: On Mon, 2006-08-21 at 12:59 -0400, Alexandre Leclerc wrote: > Simply use the StringReplace() function to replace you parameter with > the desired value. Personally, I used the Format function... > > Format('select * from %s where %s', ['table','

Re: [lazarus] parameterized queries

2006-08-22 Thread Joost van der Sluis
Try fpc-2.0.4(rc3) On Tue, 2006-08-22 at 18:57 +0200, Zlatko Matić wrote: > Hi! > > I tried to do what you suggested. I set the parameter value first and then > set the property "Active" to true: > > procedure TForm1.FormCreate(Sender: TObject); > var > begin > SQLQuery1.Params.ParamByName('par

Re: [lazarus] parameterized queries

2006-08-22 Thread Zlatko Matić
Hi! I tried to do what you suggested. I set the parameter value first and then set the property "Active" to true: procedure TForm1.FormCreate(Sender: TObject); var begin SQLQuery1.Params.ParamByName('parameter').AsString:='NESTERILNE MASTI, KREME I GELOVI'; SQLQuery1.Active:=True; end; I co

Re: [lazarus] cdecl external C

2006-08-22 Thread Alain Michaud
thank you for the help, but it does not work ! I have tried for many hours, but nothing works. I have also tried dynamic loading and it failed as well. It finds the library but not the function. (In a lazarus project, the function works very well however) It looks like it finds the library, b

Re: [lazarus] Access question

2006-08-22 Thread Joost van der Sluis
> just wondering, can I access a MS Access database from Lazarus in order > to extract some information ? I'm not exactly sure how to do it, I am > able to access the database via Java, but I was hoping to do the > exercise in Lazarus (FPC console mode even if it has to). Use SQLDB with the ODB

[lazarus] Access question

2006-08-22 Thread Ewald Horn
Hi, just wondering, can I access a MS Access database from Lazarus in order to extract some information ? I'm not exactly sure how to do it, I am able to access the database via Java, but I was hoping to do the exercise in Lazarus (FPC console mode even if it has to). Kind regards Ewald ___

Re: [lazarus] Console application

2006-08-22 Thread Fabrício F. Kammer
Thanks for all, Can I create an unique project that I'll be able to compile to run as service on Windows XP/2K, as a normal program on a Windows 98 and as a Daemon on Linux or will I need to have 3 distincts applications? Regards Fabrício Fabrício F. Kammer Burkhard Carstens escreveu: A

Re: [lazarus] class-references

2006-08-22 Thread Albert Zeyer
Am Dienstag, den 22.08.2006, 10:15 +0200 schrieb Graeme Geldenhuys: On 8/21/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote: > > TTestObject.Create won't ever be called (only TBaseTestObject.Create > > will be, but if I use TClass instead of TBaseTestClass, it also won't > > be). It also makes

Re: [lazarus] cdecl external C

2006-08-22 Thread Marco van de Voort
On Mon, Aug 21, 2006 at 07:20:21PM +0200, Mattias Gaertner wrote: > > An custom program doesn't link to c. > > You can add > {$linklib c} but you _should_ Uses InitC; and define the function as function j0(x:double):double;cdecl;external clib; which abstracts the name of libc and takes car

Re: [lazarus] Console application

2006-08-22 Thread Burkhard Carstens
Am Montag, 21. August 2006 21:51 schrieb Fabrício F. Kammer: > Hi all, > > I'm writing an TCP server using synapse and I want that the > application runs as a console application to be comptible with linux > and windows systems. > > I did the graphical applicatio using lazarus and running on window

Re: [lazarus] class-references

2006-08-22 Thread Graeme Geldenhuys
On 8/21/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote: > TTestObject.Create won't ever be called (only TBaseTestObject.Create > will be, but if I use TClass instead of TBaseTestClass, it also won't > be). It also makes no difference if I use TPersistent as base or > simply TObject. But the DoSom

Re: [lazarus] class-references

2006-08-22 Thread Graeme Geldenhuys
On 8/21/06, Albert Zeyer <[EMAIL PROTECTED]> wrote: type TBaseTestObject = class(TPersistent) constructor Create(); procedure DoSomething(); virtual; abstract; end; Make Create virtual: "constructor Create; virtual;" TTestObject = class(TBaseTestObject) public co