RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IVarInvokeable.DoProcedure Method

Implements all methods that do not return values.

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

Implement DoProcedure to provide the implementation for method calls that do not 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 DoProcedure.  

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 record represents the value of an argument passed to the function.  

DoProcedure returns True if it executes the method call, or False if it does not implement the specified procedure. 

 

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