Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any thing similar to VFP 'This'
Message
 
À
29/11/2001 12:42:00
Information générale
Forum:
Delphi
Catégorie:
Code Syntaxe & Commandes
Divers
Thread ID:
00585778
Message ID:
00587876
Vues:
24
>Can you actually get the type of sender object (BASECLASS in VFP)?

Yes, each TObject has ClassName (analog of BASECLASS), ClassType and ClassParent properties. But usually you need only check if object is related to some class. The is operator is used to verify the actual class of object:

if Sender is TButton then ...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform