Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any thing similar to VFP 'This'
Message
 
À
26/11/2001 11:39:13
Information générale
Forum:
Delphi
Catégorie:
Code Syntaxe & Commandes
Divers
Thread ID:
00585778
Message ID:
00586486
Vues:
27
Yes,

- Use self (self is the main component in the scope. i.e. if you code a procedure in a form, self is the form. If you code a class, self is the class).

- Sender: if you code a event, sender is the object that fire the event. I.E. if you click a button, sender is the button. However, you nned know that sender can be a diferent object, for example you can tie the ButtonClick event to a menu item, then sender is the button or the menu item. Use if Sender is TButton and typecast to (Sender as TButton)...
The Life is Beautiful!

Programmer in
Delphi, VS.NET
MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform