[Lazarus] 0011231: FilelistBox shows Russian letters in file names wrongly

Andrey Gusev ag888 at rambler.ru
Wed May 28 15:41:25 CEST 2008


A Clue!

Previously I had this code:

      SQLQuery1.SQL.Text:='SELECT enquiryreferencenumber FROM
registration WHERE fname='''+fname.Text+''' AND
sname='''+sname.Text+'''ORDER BY enquiryreferencenumber DESC LIMIT
1;';
      SQLQuery1.Open;
      enquiryreferencenumber.Text:=SQLQuery1.FieldByName('enquiryreferencenumber').AsString;
      SQLQuery1.Close;

Which raised an error saying that "enquiryreferencenumber" was not found.
Then I added the line SQLQuery1.First; as listed below, which gave the
Inactive Dataset error.

      SQLQuery1.SQL.Text:='SELECT enquiryreferencenumber FROM
registration WHERE fname='''+fname.Text+''' AND
sname='''+sname.Text+'''ORDER BY enquiryreferencenumber DESC LIMIT
1;';
      SQLQuery1.Open;
      SQLQuery1.First;
      enquiryreferencenumber.Text:=SQLQuery1.FieldByName('enquiryreferencenumber').AsString;
      SQLQuery1.Close;



More information about the Lazarus mailing list