RAD Studio VCL Reference
TCustomADODataSet.GetFieldData Method (Integer, Pointer)

Retrieves the current value of a field into a buffer.

function GetFieldData(Field: TField; Buffer: Pointer): Boolean; override;
function GetFieldData(Field: TField; Buffer: Pointer; NativeFormat: Boolean): Boolean; override;
function GetFieldData(FieldNo: Integer; Buffer: Pointer): Boolean; override; overload;
virtual __fastcall Boolean GetFieldData(TField Field, void * Buffer);
virtual __fastcall Boolean GetFieldData(TField Field, void * Buffer, Boolean NativeFormat);
virtual __fastcall Boolean GetFieldData(int FieldNo, void * Buffer);

Most applications do not need to call GetFieldData. TField objects call this method to implement their GetData method. 

The Field or FieldNo parameter indicates the field whose data should be fetched. Field specifies the component itself, while FieldNo indicates its field number. 

Buffer is a memory buffer with sufficient space to accept the value of the field as it exists in the database (unformatted and untranslated). GetFieldData returns a value that indicates whether the data was successfully fetched. 

GetFieldData returns a boolean value indicating whether the operation was successful. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!