System.Variants.VarDispProc

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

VarDispProc: TVarDispProc;

C++

extern DELPHI_PACKAGE TVarDispProc VarDispProc;

Propriétés

Type Visibilité  Source Unité  Parent
variable public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

Prend en charge l'Automation IDispatch.

Dans Delphi, VarDispProc pointe sur une routine appelée pour exécuter les méthodes (ou les propriétés d'accès) d'une interface affectée à un Variant. L'unité Variants affecte une procédure qui génère une erreur 222 ou provoque une exception EVariantDispatchError. L'unité ComObj réaffecte cette variable à une procédure qui génère les appels COM IDispatch appropriés.

Pour contrôler comment les variants exécutent les méthodes lorsqu'ils possèdent une valeur représentant une interface, affectez votre propre procédure à VarDispProc.

Voir aussi