Data.Win.ADODB.TCustomADODataSet.SetFieldData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetFieldData(Field: TField; Buffer: TValueBuffer); overload; override;
procedure SetFieldData(Field: TField; Buffer: TValueBuffer; NativeFormat: Boolean); overload; override;
procedure SetFieldData(Field: TField; Buffer: Pointer); overload; override; deprecated 'Use overloaded method instead';
procedure SetFieldData(Field: TField; Buffer: Pointer; NativeFormat: Boolean); overload; override; deprecated 'Use overloaded method instead';

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TCustomADODataSet

Description

Sets the buffer to the current field.

Data.Win.ADODB.TCustomADODataSet.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