TurboDB VCL Component Library



Previous  Top  Next

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

Delphi syntax:

procedure Assign(Source: TPersistent); override;

C++ syntax:

virtual void __fastcall Assign(Classes::TPersistent* Source);


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.