General information
Category:
Visual FoxPro Product Documentation
>When two methods are related via BINDEVENT() and flag 1, the return value should be of the delegate-method, not the source-method. That's what documentation for Vfp8 and Vfp9 says, and that's what Vfp8 and Vfp9-Beta are doing - BUT NO LONGER VFP9-FINAL!!!
>Is there any vfp-wide setting I didn't catch or is it really an undocumented change of the syntax between the beta and the final version?
>
>Try this:
>x = createobject("aaa")
>y = createobject("bbb")
>bindevent(x,"metha",y,"methb",1)
>? x.metha() && Vfp8 and Vfp9Beta return "BBB", Vfp9Final returns "AAA"
>
>define class aaa as custom
> procedure metha
> return "AAA"
> endproc
>enddefine
>define class bbb as custom
> procedure methb
> return "BBB"
> endproc
>enddefine
I agree with Terry.
This was bad a design of VFP8,
a good VFPT developr have fixed it.
Fabio
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only