System.Variants.TInvokeableVariantType.DoFunction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoFunction(var Dest: TVarData; const V: TVarData;
const Name: string; const Arguments: TVarDataArray): Boolean; virtual;

C++

virtual bool __fastcall DoFunction(TVarData &Dest, const TVarData &V, const System::UnicodeString Name, const TVarDataArray Arguments);

Properties

Type Visibility Source Unit Parent
function public
System.Variants.pas
System.Variants.hpp
System.Variants TInvokeableVariantType

Description

Implements all methods that return values.

Override DoFunction to provide the implementation for method calls that return values. When the application invokes a Variant member function (Delphi) or calls the Variant's Exec method (C++), a call is automatically generated to DoFunction.

The following table lists the parameters expected by this method.



Value Meaning

Dest

TVarData record that receives the value returned by the function.

V

The TVarData record from the Variant instance that was used to call the function.

Name

The name of the function being called.

Arguments

Dynamic array of TVarData records, where each one represents the value of an argument passed to the function.



DoFunction returns true if it executes the method call, false if it does not implement the specified function.

As implemented in TInvokeableVariant, DoFunction always returns false, because it does not implement any function calls.

See Also