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 "compatibility".
You should use
tFileName:=mainForm.SQLQuery1.FieldByName('TFileName').AsString;
instead.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives