RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarDispProc Variable

Provides the support for IDispatch-based Automation.

Pascal
VarDispProc: TVarDispProc;
C++
TVarDispProc VarDispProc;

In Delphi, VarDispProc points to a routine that is called to execute methods (or access properties) of an interface that is assigned to a System::Variant. The Variants unit assigns a procedure that generates error 222 or raises an EVariantDispatchError exception. The ComObj unit reassigns this variable to a procedure that generates the appropriate COM IDispatch calls.  

To control how Variants execute methods when they have a value that is an interface, assign your own procedure to VarDispProc.  

 

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