RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSet.ActiveBuffer Method

Returns a pointer to the buffer for the active record.

Pascal
function ActiveBuffer: PChar;
C++
__fastcall const char * ActiveBuffer();

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!