RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataContext.AddWStrToClear Method

Stores a wide string that can be cleared when the data context is finished.

Pascal
procedure AddWStrToClear(P: Pointer);
C++
__fastcall AddWStrToClear(void * P);

Call AddWStrToClear to add a wide string to the list of temporary wide strings that TDataContext maintains. When the TDataContext instance is freed, it clears all strings in this list. 

P is a pointer to the WideString.

Note: TDataContext does not provide access to this list. The caller must keep a reference to the string for use while the TDataContext instance exists.
 

 

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