Skip to content

IVarInvokeable.SetProperty

Called when a property must be set

Declaration

Source position: variants.pp line 222

default 
  function SetProperty(var V: tvardata; const Name: string; 
                      const Value: tvardata) : Boolean;

Description

DoFunction is called whenever a variant property is written. Value is filled with the new value of the property. V is the variant on which the property is written. The Name is the name of the property to write.

The function must return True if the property was written correctly, False otherwise.

See also

Name Description
IVarInvokeable.DoFunction Called for methods that return a result (functions)
IVarInvokeable.DoProcedure Called for methods that do not return a result (procedures)
IVarInvokeable.GetProperty Called when a property must be read