Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Behaviour of BINDEVENT changed from Beta to Final
Message
De
03/02/2005 14:02:40
 
 
À
03/02/2005 06:39:39
Reno Fiedermutz
Smartstream Technologies
Vienna, Autriche
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Documentation de produit
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00983392
Message ID:
00983575
Vues:
18
>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
Fil
Voir

Click here to load this message in the networking platform