RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IVarInvokeable.DoFunction Method

Implements all the methods that return values.

Pascal
function DoFunction(var Dest: TVarData; const V: TVarData; const Name: string; const Arguments: TVarDataArray): Boolean;
C++
__fastcall Boolean DoFunction(TVarData Dest, const TVarData V, const AnsiString Name, const TVarDataArray Arguments);

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

Dest is a TVarData record that receives the value returned by the function. V is the TVarData record from the System::Variant instance that was used to call the function. Name is the name of the function being called. Arguments is a 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!