RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IVarInvokeable.GetProperty Method

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

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

Implement GetProperty to provide the implementation for reading properties. When the application tries to read a property of a System::Variant (Delphi) or calls the System::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 System::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. 

 

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