RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IVarInvokeable.SetProperty Method

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

Pascal
function SetProperty(const V: TVarData; const Name: string; const Value: TVarData): Boolean;
C++
__fastcall Boolean SetProperty(const TVarData V, const AnsiString Name, const TVarData Value);

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

 

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