Hi,
I have a TMyQuery open with 20000 rows and I want to copy 500 first rows on the TVirtualTable with crBatchMove component. If I don't initialize RecordCount property, all rows are copied on the dataset, but if I initialize RecordCount to 500, zero row are copied in the dataset. I need to initialize other property to work ?
This is an exemple of my code
if dsetDetail.Active then
dsetDetail.EmptyTable;
dsetDetail.DisableControls;
qryDetail.First;
bthDetail.Source := qryDetail;
bthDetail.Destination := dsetDetail;
bthDetail.RecordCount := 500;
bthDetail.Execute;
dsetDetail.EnableControls;
ShowMessage('MovedCount : ' + IntToStr(bthDetail.MovedCount) + #13#10 +
'ProblemCount : ' + IntToStr(bthDetail.ProblemCount));
Thank you