crBatchMove and EOF problem
Posted: Wed 21 Jul 2010 23:03
Hi,
Thanks to resolve RecordCount problem in crBatchMove. After many tests, I found other problem when dataset property EOF is True and I want to copy the last row in other dataset.
This is the code to you need to reproduce problem
OldDataset.Last;
BatchMove.RecordCount := 1;
BatchMove.Source := OldDataset;
BatchMove.Destination := NewDataset;
BatchMove.Execute;
If you check in NewDataset, nothing row is copied. But, if you try OldDataset.Prior and OldDataset.Next before Execute, the row will be copied.
I hope you'll resolve this problem ?
Thanks
Thanks to resolve RecordCount problem in crBatchMove. After many tests, I found other problem when dataset property EOF is True and I want to copy the last row in other dataset.
This is the code to you need to reproduce problem
OldDataset.Last;
BatchMove.RecordCount := 1;
BatchMove.Source := OldDataset;
BatchMove.Destination := NewDataset;
BatchMove.Execute;
If you check in NewDataset, nothing row is copied. But, if you try OldDataset.Prior and OldDataset.Next before Execute, the row will be copied.
I hope you'll resolve this problem ?
Thanks