RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFieldDef.Assign Method

Copies the properties of one field definition to another.

Pascal
procedure Assign(Source: TPersistent); override;
C++
virtual __fastcall Assign(TPersistent * Source);

Call Assign to copy a field definition. Assign checks whether the Source parameter specifies another field definition, and if so, copies the values of the Name, DataType, Size, Precision, and InternalCalcField properties. Note that the value of FieldNo is not changed. 

If the source is not a field definition, Assign calls the inherited method, which assigns properties from any object that specifies how to copy to a field definition in its AssignTo method. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!