Sign in Join
FPDoc Onlineexperiment

IVarInvokeable.GetProperty function

Member of IVarInvokeableIn unit Variants

Called when a property must be read.

Declaration

pascal
function GetProperty(var Dest: tvardata; const V: tvardata; 
 const Name: AnsiString): Boolean

Arguments

Dest

On success, contains the value of the property.

V

Variant to read property from.

Name

Name of property to read.

Function result

Indicate whether the property was read correctly.

Description

DoFunction is called whenever a variant property is read. Dest must be filled with the value of the property on success. V is the variant on which the property is read. The Name is the name of the property to read.

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.