When im trying to set FetchAll option to True or False, i get access violation.
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
const
coFetchAll = TSQLConnectionOption(301); //boolean
begin
SQLDataSet1.Close;
SQLConnection1.Close;
if CheckBox1.Checked then
SQLConnection1.SQLConnection.SetOption(coFetchAll, Integer(True))
else
SQLConnection1.SQLConnection.SetOption(coFetchAll, Integer(False));
SQLConnection1.Open;
SQLDataSet1.Open;
end;