TMSTableData Assign function not copy the data
The TMSTableData Component Assign function only copy the source table fields, but not copy the source data! I strongly recommend that can copy the all data like the TMSTable component.
for example:
self.MSTable1.First;
self.MSTableData1.Close;
self.MSTableData1.FieldDefs.Clear();
self.MSTableData1.Assign(self.MSTable1);
self.MSTableData1.Active:= true;
The MSTableData1 not copy the MSTable1 data , but it copy the fields
2
votes
![](https://secure.gravatar.com/avatar/9432282568686fa89615cf102a33e606?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)