System.Variants.TInvokeableVariantType.DoProcedure

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoProcedure(const V: TVarData; const Name: string;
const Arguments: TVarDataArray): Boolean; virtual;

C++

virtual bool __fastcall DoProcedure(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 the methods that do not return values.

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 that allows the TInvokeableVariant descendant to implement the call is automatically generated to DoProcedure.

The following table lists the parameters expected by this method.



Value Meaning

V

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

Name

The name of the procedure.

Arguments

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, and 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.

See Also