RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataContext.GetDataPointer Method

Returns a pointer from the internal cache of pointers.

Pascal
function GetDataPointer(Index: Integer): Pointer;
C++
__fastcall void * GetDataPointer(int Index);

GetDataPointer returns a pointer from the internal cache of pointers. This value is assigned by a call to the SetDataPointer method. 

Index is the index of the desired pointer, where 0 is the first pointer, 1 is the second pointer, and so on.

Note: TDataContext does not actually allocate the memory to store these pointers. Descendant classes must initialize the internal dynamic array that TDataContext uses to store pointers.
 

 

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