VirtualDAC

TVirtualTable.Assign Method

Copies fields and data from another TDataSet component.

Class

TVirtualTable

Syntax

procedure Assign(Source: TPersistent); override;

Parameters
Source
Holds the TDataSet component to copy fields and data from.

Remarks

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.

Example

VirtualQuery1.SQL.Text := 'SELECT * FROM DEPT';
VirtualQuery1.Active := True;
VirtualTable1.Assign(VirtualQuery1);
VirtualTable1.Active := True; 

See Also

© 1997-2021 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback