LiteDAC

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 server-oriented dataset.

Example


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

See Also

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