RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParam.AssignFieldValue Method

Assigns the DataType and Value properties from a TField object.

Pascal
procedure AssignFieldValue(Field: TField; const Value: Variant);
C++
__fastcall AssignFieldValue(TField Field, const Variant Value);

Use AssignFieldValue to set the Value property to the value passed as the Value parameter. AssignFieldValue assumes that the Value represents a value from a field like the Field parameter, and assigns the DataType property accordingly. AssignFieldValue sets the Bound property to true. 

Unlike AssignField, AssignFieldValue does not name the parameter after the field object. 

 

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