Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any thing similar to VFP 'This'
Message
 
To
26/11/2001 11:39:13
General information
Forum:
Delphi
Category:
Coding Syntax & Commands
Miscellaneous
Thread ID:
00585778
Message ID:
00586486
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform