RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomVariantType.SimplisticClear Method

Clears a TVarData record by re-initializing it.

Pascal
procedure SimplisticClear(var V: TVarData);
C++
__fastcall SimplisticClear(TVarData V);

Call SimplisticClear from the implementation of a TCustomVariantType descendant to clear the TVarData record of a Variant of the custom type. This method should only be called if the TVarData record does not contain any members that must be freed. 

SimplisticClear simply calls the VarDataInit method, which reinitializes the TVarData record passed as V. 

 

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