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 06:39:39
Reno Fiedermutz
Smartstream Technologies
Vienna, Autriche
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Documentation de produit
Titre:
Behaviour of BINDEVENT changed from Beta to Final
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00983392
Message ID:
00983392
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform