TMSConnection.OpenDataSets does not work with TMSQuery.Debug
Posted: Wed 15 Jun 2016 16:40
If in a TMSQuery the Debug property is set to true when the dataset is opened with OpenDataSets the query before execution preview window does not appear, while it used to appear in past.
For example check this code:
Since i am almost 100% sure it was working in past (=opendatasets was triggering the preview) I want to ask whether this is a bug or a new behavior.
Please let me know. Thanks
For example check this code:
Code: Select all
MSQuery1.Debug := True;
MSQuery1.Close;
if chkUseOpenDatasets.Checked then
begin
MSConnection1.OpenDatasets([MSQuery1]);
ShowMessage('The Preview won''t open');
end
else
begin
MSQuery1.Open;
ShowMessage('The Preview will open');
end;Please let me know. Thanks