Copies fields and data from another TDataSet component.
procedure Assign(Source: TPersistent); override;
Call the Assign method to copy fields and data from another TDataSet component.
Note: Unsupported field types are skipped (i.e. destination dataset will contain less fields than the source one). This may happen when Source is not a TVirtualTable component but some server-oriented dataset.
Query1.SQL.Text := 'SELECT * FROM DEPT'; Query1.Active := True; VirtualTable1.Assign(Query1); VirtualTable1.Active := True;