Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Major Bug - BINDEVENTS
Message
De
23/12/2004 15:44:51
 
 
À
23/12/2004 15:09:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00971680
Message ID:
00971919
Vues:
37
>Why should an event have any return value? That's what methods are for. If you want to run code that returns a value to you, write a method.

In the strict sense, you are correct. However, there are occasions (actually it's a design pattern - forgot the name) where binding custom methods utilizing return values provides powerfull solutions.

>You should never write code like your example. You should always use the "2" flag of BindEvent() and then use RaiseEvent() to actually call the event.

I disagree. Circumstances very on how BindEvents is used. The code I provided was only repo code that shows a behavior change fron VFP8 - VFP9.
- Jeff
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform