System.Variants.IVarInvokeable.DoFunction
Delphi
function DoFunction(var Dest: TVarData; const V: TVarData;
const Name: string; const Arguments: TVarDataArray): Boolean;
C++
virtual bool __fastcall DoFunction(TVarData &Dest, const TVarData &V, const System::UnicodeString Name, const TVarDataArray Arguments) = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Variants.pas System.Variants.hpp |
System.Variants | IVarInvokeable |
Description
Implements all the methods that return values.
Implement 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, or False if it does not implement the specified function.