<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The return value of a method can be intercepted using BindEvent</title><link>http://blogs.msdn.com/calvin_hsia/archive/2006/10/20/the-return-value-of-a-method-can-be-intercepted-using-bindevent.aspx</link><description>Here’s a blog post that I wrote a long time ago, but forgot to publish. Marco Cenzato commented on Why doesn't my form close? Here is another case; what do you think: is related? ** Comment the define and rerun the program # Define USE_BINDEVENT Activate</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: The return value of a method can be intercepted using BindEvent</title><link>http://blogs.msdn.com/calvin_hsia/archive/2006/10/20/the-return-value-of-a-method-can-be-intercepted-using-bindevent.aspx#860510</link><pubDate>Mon, 23 Oct 2006 11:26:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:860510</guid><dc:creator>Marco Cenzato</dc:creator><description>&lt;p&gt;Thank you Clavin for your response :-) but, sorry, I'm not undarstanding :-(&lt;/p&gt;
&lt;p&gt;In your previous post &amp;quot;What to do with the Bindevent return value?&amp;quot; you wrote:&lt;/p&gt;
&lt;p&gt;&amp;quot;Event handlers handle events. They don’t have return values (...).&amp;quot;&lt;/p&gt;
&lt;p&gt;and &lt;/p&gt;
&lt;p&gt;&amp;quot;... that was changed for the released version of VFP9: the Return value of the original method is used. &amp;nbsp;That way, the behavior is consistent and predictable. Also, adding a BindEvent to code won’t change the original author’s intended return value.&amp;quot;&lt;/p&gt;
&lt;p&gt;Something is not clear to me: may be the chages apply only when BindEvent() binds to a method and not to an Event (like Init, Keypress, MouseMove...) ?&lt;/p&gt;
&lt;p&gt;Also in this post you write: &lt;/p&gt;
&lt;p&gt;&amp;quot;... BindEvent is being used to bind to the Init event, meaning that the Return value is lost.&amp;quot; &lt;/p&gt;
&lt;p&gt;It is lost because overwritten by the last callede delegate return value, I'm right?&lt;/p&gt;
</description></item></channel></rss>