Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BINDEVENT and return values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01082514
Message ID:
01082517
Vues:
8
Does the following say that you can't do that?
Re: A well-known bug is still existent about Bindevent() Thread #1053745 Message #1053754


>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform