I'm mucking around with event binding in FoxPro and I can't seem to figure out how to get BINDEVENT() to return a value from a bound method. I'm basically overriding methods as part of framework using BindEvent() to completely override these custom methods in effect providing declarative events on the classes in question.
It all works great, except several of these 'events' require returning values that override the default return values (which usually are just placeholders returning 'nothing' whatever that means in the context of the method).
BINDEVENT supports a bunch of different flags. 0,1,2,3 which determine how the delegates and underlying events fire. However, I can't even get 2 and 3 to fire which would preclude the original method/event from firing. when I hook bindevent this way my hooked code doesn't fire either though. Nothing fires in effect.
What am I missing here? I've been mucking around with this for a half an hour and I can't make sense of it.
What I need is to have only my override method called or have my override method called after the original method so that I can return a value.
Any ideas?