Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Behaviour of BINDEVENT changed from Beta to Final
Message
From
03/02/2005 06:39:39
Reno Fiedermutz
Smartstream Technologies
Vienna, Austria
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Product Documentation
Title:
Behaviour of BINDEVENT changed from Beta to Final
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00983392
Message ID:
00983392
Views:
58
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
Next
Reply
Map
View

Click here to load this message in the networking platform