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 SQL server oriented dataset.
VirtualQuery1.SQL.Text := 'SELECT * FROM DEPT'; VirtualQuery1.Active := True; VirtualTable1.Assign(VirtualQuery1); VirtualTable1.Active := True;