Hmmm.... also mein Compiler bringt keinen Fehler bei diesem Code:
Delphi-Quellcode:
close;
q := '
%test%';
close;
SQL.Clear;
SQL.Add ('
SELECT * FROM Tabelle WHERE');
SQL.Add ('
id LIKE :id OR ');
SQL.Add ('
name LIKE :name OR ');
SQL.Add ('
vorname LIKE :vorname OR ');
SQL.Add ('
strasse LIKE :strasse OR ');
SQL.Add ('
plz LIKE :plz OR ');
SQL.Add ('
stadt LIKE :stadt OR ');
SQL.Add ('
email LIKE :email OR ');
SQL.Add ('
notiz LIKE :notiz');
ParamByName ('
id').AsString := q;
ParamByName ('
name').AsString := q;
ParamByName ('
vorname').AsString := q;
ParamByName ('
strasse').AsString := q;
ParamByName ('
plz').AsString := q;
ParamByName ('
stadt').AsString := q;
ParamByName ('
email').AsString := q;
ParamByName ('
notiz').AsString := q;
open;
Stephan B.
"Lasst den Gänsen ihre Füßchen"