Information générale
Catégorie:
Visual FoxPro Documentation de produit
Versions des environnements
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement