RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPublishableVariantType.GetInstance Method

Returns the object instance that represents the data from a Variant of the custom type.

Pascal
function GetInstance(const V: TVarData): TObject; virtual; abstract;
C++
virtual __fastcall TObject * GetInstance(const TVarData V) = 0;

Override GetInstance to return the object that represents the data from a Variant of the custom Type. TPublishableVariantType implements all the published properties of that object so that they are published properties of the Variant

V is the data from a Variant of the custom type. This data must include a reference to an object that represents the Variant's data, and which GetInstance returns. 

GetInstance is abstract or, in C++ terminology, pure virtual in TPublishableVariantType, which means it has no implementation. Descendant classes override this method to enable Variants to publish the properties from the object that implements their data. 

 

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