TMemDataset.GetFieldData function
Gets data for the specified field from the active record buffer.
Declaration
function GetFieldData(Field: TField; Buffer: Pointer): Boolean
; overrideArguments
Field | Field to access in the record buffer. |
Buffer | Buffer used to store data for the field. |
Function result
True if field data was retrieved from the record buffer.
Description
GetFieldData is used to get data for the specified Field from the active record buffer. GetFieldData calls MDSGetActiveBuffer to get the active record buffer for the in-memory dataset. No actions are performed in the method when records do not exist in the dataset.
Field provides the offset into the record buffer for field data. For calculated and lookup fields, it also provides the size for the field data.
Buffer is updated to contain the field data for the specified Field.
The return value indicates if field data was successfully retrieved in the method. It contains False when Buffer has not been assigned (contains Nil), or when the data for the Field is a null pointer.
GetFieldData provides an implementation of the virtual function defined in the ancestor class. Please note, it does not call the inherited method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
