From RAD Studio API Documentation
Jump to: navigation, search


function GetProperty(var Dest: TVarData; const V: TVarData;  const Name: string): Boolean;


virtual bool __fastcall GetProperty(TVarData &Dest, const TVarData &V, const System::UnicodeString Name) = 0 ;


Type Visibility Source Unit Parent
function public
System.Variants IVarInvokeable


Returns the value for any property supported by a custom Variant type.

Implement GetProperty to provide the implementation for reading properties. When the application tries to read a property of a Variant (Delphi) or calls the Variant's Exec method (C++), a call is automatically generated to GetProperty.

Dest is a TVarData record that receives the value of the read property. V is the TVarData record from the Variant instance that was used to access the property. Name is the name of the property being read.

GetProperty returns True if it handles the property, False if it does not implement the specified property.

See Also