Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BINDEVENT and return values
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
BINDEVENT and return values
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01082514
Message ID:
01082514
Views:
52
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?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Next
Reply
Map
View

Click here to load this message in the networking platform