RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokeableVariantType.GetProperty Method

Returns the value for any property this Variant type supports.

Pascal
function GetProperty(var Dest: TVarData; const V: TVarData; const Name: string): Boolean; virtual;
C++
virtual __fastcall Boolean GetProperty(TVarData Dest, const TVarData V, const AnsiString Name);

Override GetProperty to provide the read implementations for properties of instances of the Variant. When the application reads a Variant property (Delphi) or calls the Variant's Exec method (C++) a call is automatically generated to GetProperty that allows the TInvokeableVariant descendant to implement the call. 

Dest is a TVarData record that receives the property value. 

V is the TVarData record from the Variant instance whose property is being read. 

Name is the name of the property. 

GetProperty returns true if it returns a property value, false if it does not implement the specified property. 

As implemented in TInvokeableVariant, GetProperty always returns false, because it does not implement any properties. 

 

DoFunction 

DoProcedure 

SetProperty 

Exec 

Supporting Properties and Methods in Custom Variants

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