Coverting a TMyQuery dataset to TClientDataSet in Delphi
Coverting a TMyQuery dataset to TClientDataSet in Delphi
Hi I make use of the Mydac components by devart (corelab) to access MySql from Delphi (2006) Very often I need to work with data in a TClientDataSet What is the best way to convert the dataset of a TMyQuery to TClientDataSet
You can use the following code:
After this you can use TClientDataSet.
Code: Select all
DataSetProvider.DataSet := MyQuery;
ClientDataSet.ProviderName := DataSetProvider;