Re: [lazarus] DataBase Queries

2008-02-05 Thread Michael Van Canneyt
On Mon, 4 Feb 2008, el stamatakos wrote: Hi, I am working with a database and I am doing the following tFile:string; tFileName:=mainForm.SQLQuery1.FieldValues['tFileName']; You should never use FieldValues, this is a horrible construct which Delphi introduced for Visual Basic

Re: [lazarus] DataBase Queries

2008-02-05 Thread Roberto Padovani
2008/2/5, Michael Van Canneyt [EMAIL PROTECTED]: On Mon, 4 Feb 2008, el stamatakos wrote: Hi, I am working with a database and I am doing the following tFile:string; tFileName:=mainForm.SQLQuery1.FieldValues['tFileName']; You should never use FieldValues, this is a horrible

RE: [lazarus] DataBase Queries

2008-02-05 Thread el stamatakos
Hi Michael. Thanks for all your help. I will try it out. Best, Lefti Date: Tue, 5 Feb 2008 09:15:37 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] DataBase QueriesOn Mon, 4 Feb 2008, el stamatakos wrote: Hi, I am working with a database and I am doing

[lazarus] DataBase Queries

2008-02-04 Thread el stamatakos
Hi, I am working with a database and I am doing the following tFile:string; tFileName:=mainForm.SQLQuery1.FieldValues['tFileName']; where tFileName is in a database and is a string. I keep getting a EVariant error on this line. Is there any way to force

Re: [lazarus] DataBase Queries

2008-02-04 Thread John
el stamatakos wrote: Hi, I am working with a database and I am doing the following tFile:string; tFileName:=mainForm.SQLQuery1.FieldValues['tFileName']; where tFileName is in a database and is a string. I keep getting a EVariant error on this line. Is there any way to force

RE: [lazarus] DataBase Queries

2008-02-04 Thread el stamatakos
hi, Actually it is tchFileName:string and tchFileName:=mainForm.SQLQuery1.FieldValues['tchFileName']; Thanks Date: Tue, 5 Feb 2008 15:36:55 +1100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] DataBase Queries el stamatakos wrote: Hi, I am working