RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokeableVariantType.DoProcedure Method

Implements all methods that do not return values.

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

Override DoProcedure to provide the implementation for methods calls that do not return values. When the application invokes a Variant member procedure (Delphi) or calls the Variant's Exec method (C++) a call is automatically generated to DoProcedure that allows the TInvokeableVariant descendant to implement the call. 

V is the TVarData record from the Variant instance that was used to call the procedure. 

Name is the name of the procedure. 

Arguments is a dynamic array of TVarData records, where each one represents the value of an argument passed to the procedure.  

DoProcedure returns true if it executes the procedure call, false if it does not implement the specified procedure. 

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!