System.Variants.IVarInvokeable.SetProperty
Delphi
function SetProperty(const V: TVarData; const Name: string; const Value: TVarData): Boolean;
C++
virtual bool __fastcall SetProperty(const TVarData &V, const System::UnicodeString Name, const TVarData &Value) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Variants.pas System.Variants.hpp |
System.Variants | IVarInvokeable |
Description
Sets the value for any property supported by a custom Variant type.
Implement SetProperty to provide the implementation for setting properties. When the application tries to set a property of a Variant (Delphi) or calls the Variant's Exec method (C++), a call is automatically generated to SetProperty.
Value is a TVarData record that is the value assigned to the 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 set.
SetProperty returns True if it handles the property, False if it does not implement the specified property.