Hallo jana,
es müßte so funktionieren:
Delphi-Quellcode:
Query1.SQL.Text := 'INSERT INTO setup(ImportVerz, LogVerz) VALUES (:dir,:dir2)';
Query1.ParamByName('dir').Value := quotedstr(Dir);
Query1.ParamByName('dir2').Value := quotedstr(Dir2);
Query1.ExecSQL;
Label3.Caption := Query1.SQL.Text