FireDAC.Comp.DataSet.TFDDataSet.SetFieldData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetFieldData(AField: TField; ABuffer: TValueBuffer); overload; override;

C++

virtual void __fastcall SetFieldData(Data::Db::TField* AField, System::DynamicArray<System::Byte> ABuffer)/* overload */;
inline void __fastcall  SetFieldData(Data::Db::TField* Field, System::DynamicArray<System::Byte> Buffer, bool NativeFormat){ Data::Db::TDataSet::SetFieldData(Field, Buffer, NativeFormat); }
inline void __fastcall  SetFieldData _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (Data::Db::TField* Field, void * Buffer){ Data::Db::TDataSet::SetFieldData(Field, Buffer); }
inline void __fastcall  SetFieldData _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (Data::Db::TField* Field, void * Buffer, bool NativeFormat){ Data::Db::TDataSet::SetFieldData(Field, Buffer, NativeFormat); }

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDDataSet

Description

Sets the buffer to the current field.

FireDAC.Comp.DataSet.TFDDataSet.SetFieldData inherits from Data.DB.TDataSet.SetFieldData. All content below this line refers to Data.DB.TDataSet.SetFieldData.

Sets the buffer to the current field.

SetFieldData is used to set the Buffer to the Field field. TField objects call this method to implement their SetData method.

The Field parameter indicates the field that will be set to the data from Buffer buffer. NativeFormat indicates whether the dataset fetches the field in the IDE's native format for the field type. When NativeFormat is False, the dataset must convert the field value to the native type. This allows the field to handle data from different types of datasets (ADO-based and so on) in a uniform manner.

Note: TDataSet.SetFieldData method expects Integer and Cardinal values instead of LongInt for ftInteger and LongWord for ftLongword.

See Also