RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataContext.AddVariantToClear Method

Stores the value of a Variant that can be cleared when the data context is finished.

Pascal
procedure AddVariantToClear(P: PVarData);
C++
__fastcall AddVariantToClear(PVarData P);

Call AddVariantToClear to add a Variant to the list of temporary Variant values that TDataContext maintains. When the TDataContext instance is freed, it clears all the Variants in this list of temporary Variant values.

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

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!