Show: Delphi C++
Display Preferences

Data.DB.TDataSet.SetFieldData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Data.DB.pas
Data.DB.hpp
Data.DB TDataSet

Description

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

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance