[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Variants' (#rtl)

# IVarInvokeable.SetProperty

Called when a property must be set

## Declaration

Source position: variants.pp line 222

`function IVarInvokeable.SetProperty(`
`var V: tvardata;`
`const Name: string;`
`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: May 14 2021