Page 1 of 1

copy fields from other dataset to tvirtualtable

Posted: Fri 09 Dec 2011 21:03
by snorkel
Is there a method that can duplicate fields from another dataset?
i.e. something like createfieldsfromdataset?

Posted: Mon 12 Dec 2011 10:41
by AlexP
Hello,

In the design-time, you can use popup menu of VirtualTable, choose 'Assign DataSet...' in it and specify the needed DataSet. In the run-time, you can use the Assign method in the following way:

Code: Select all

VirtualTable1.Assign(SourceDataSet);