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 construct which Delphi > introduced for Visual Basic "compatibility". > > You should use > tFileName:=mainForm.SQLQuery1.FieldByName('TFileName').AsString; > instead. >
exactly...and I seem to remember that there was a bug in the reader method of the FieldValues property which prevented it to work. R# . _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives