|
-
Nov 22nd, 2004, 02:11 AM
#1
Questions on Delegate
Take a look at this URL, where I was reading up on Delegates from:
http://abstractvb.com/code.asp?A=1084
In the example given, there exists a procedure,
VB Code:
c.NotifyOnAddressChange(New Customer.AddressChanged(AddressOf AddressModified))
This of course, delegates the AddressChange event to a sub named AddressModified.
Now, if I didn't use delegates, I could have simply used AddHandler and given the AddressOf the same sub.
Even after reading that article, I'm a little unclear as to what advantages Delegates have over plain ol' Events.
Perhaps someone could explain in their own words?
Tx,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|