TurboDB VCL/CLX Component Library
TTdbFieldDefs.Assign
TTdbFieldDefs
Top 


Copies the contents of another field definition list to the object where the method is executed.

procedure Assign(Source: TPersistent); override;

Description
Use Assign to copy the contents of one TTdbFieldDefs instance to another. The Assign method deletes all items from the destination collection (the object where it is executed), then adds a copy of each item in the Source collection's Items array. You can assign either a TTdbFieldDefs object or a TFieldDefs object to an instance of TTdbFieldDefs. Assign is mainly employed to create a table that has the same fields as another already existing table.