Data.DB.TParam.AssignFieldValue
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TParam |
Delphi
procedure AssignFieldValue(Field: TField; const Value: Variant);
C++
void __fastcall AssignFieldValue(TField* Field, const System::Variant &Value);
Description
Assigns the DataType and Value properties from a TField object.
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.