RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParam.Assign Method

Copies the Name and Value of another TParam object.

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

Use Assign to copy from another parameter or from a field component. If the Source parameter is another parameter, Assign transfers the value of 

The DataType property 

The Bound property 

The Value property 

The Name property 

The ParamType property only if it is currently ftUnknown. 

If the Source parameter is a field component, Assign transfers the value of 

The DataType property 

The Value property 

The Name property (from the FieldName of the field) 

When assigning values from a field, Assign sets the Bound property to true.

Note: Assign does not alter the use of a parameter, only the identifier and the value.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!