Data.DB.TDataSet.ActiveBuffer
Delphi
function ActiveBuffer: TRecBuf; inline;
C++
TRecBuf __fastcall ActiveBuffer();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TDataSet |
Description
Returns a pointer to the buffer for the active record.
ActiveBuffer is used internally by many dataset methods to ensure that the active buffer points to the buffer for the active record. If an application uses existing dataset methods, the active buffer is always set correctly, so there is usually no need to call ActiveBuffer directly.
Note: Unidirectional datasets do not buffer records. On Unidirectional datasets, ActiveBuffer returns a meaningless value.
ActiveBuffer is used by bookmarking methods to index into the active record buffer to retrieve bookmark information.
Applications that provide custom dataset routines may need to call ActiveBuffer to access the buffer data.