From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function SetProperty(const V: TVarData; const Name: string;  const Value: TVarData): Boolean; virtual;


virtual bool __fastcall SetProperty(const TVarData &V, const System::UnicodeString Name, const TVarData &Value);


Type Visibility Source Unit Parent
function public
System.Variants TInvokeableVariantType


Sets the value for any property this Variant type supports.

Override SetProperty to provide the write implementation for the properties of instances of the invokeable Variant type. When the application writes to a Variant property (Object Pascal) or calls the Variant's Exec method (C++), a call is automatically generated to SetProperty that allows the TInvokeableVariant descendant to implement the call.

Name is the name of the property.

Value is a TVarData record that contains the new property value.

V is the TVarData record that receives the property value.

SetProperty returns True if it sets a property value and False if it does not implement the specified property or if the specified property is read-only.

As implemented in TInvokeableVariant, SetProperty always returns False, because it does not implement any properties.

See Also