hmm i downloaded MySql5Test, but
ShowQueryForm := TShowQueryForm.Create(nil);
try
ShowQueryForm.DataSource1.DataSet := SQLQuery1;
<----- This line reciving error: "File not open" SQLQuery1.ParseSQL:=true;
SQLQuery1.ReadOnly:=false;
SQLQuery1.SQL.Text := CommandEdit.Text;
SQLQuery1.Open;
ShowQueryForm.ShowModal;
finally
SQLQuery1.UpdateMode:=upWhereChanged;
SQLQuery1.ApplyUpdates;
SQLTransaction1.Commit;
ShowQueryForm.Free;
SQLQuery1.Close;
SQLQuery1.ParseSQL:=false;
SQLQuery1.ReadOnly:=true;
end;
and how to show results?
dbGrid1.DataSource:=SQLQuery1.DataSource; ??
it doesn't work...
so... i don't know how to download information from database
but i can how use it next