Unit 'Variants' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

IVarInvokeable.SetProperty

Called when a property must be set.

Declaration

Source position: variants.pp line 229

function IVarInvokeable.SetProperty(

  var V: TVarData;

  const Name: AnsiString;

  const Value: TVarData

):Boolean;

Arguments

V

  

Variant to write property on.

Name

  

Name of property to write.

Value

  

Value to set property to.

Function result

Indicate whether the property was written correctly.

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

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.


Documentation generated on: Dec 26 2024