Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dragover and calling another method problems
Message
 
 
À
29/05/2006 16:24:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01125469
Message ID:
01125713
Vues:
14
>>All it does is called the code in event w/o triggering event, which is not a good idea in the first place. See >http://fox.wikis.com/wc.dll?Wiki~MethodsShouldNeverCallEvents
>
>I disagree with this theory -- methods can not call or trigger an event. Events trigger methods. The Click() code contained in an object (form, control, etc) is not the event -- it is the method code called as a result of the event. Calling one object's Click() code from another object's method code is no different than calling a custom named method. The actual event (in this case, button click) is not raised by one method calling the click() code.

It's you own theory that method cannot call an event. It certanly can.
Again, a method can trigger an event by using RAISEVENT() function but not by calling code bihand it.
However a method shouldn't call an event code for reasons explained in the wiki article.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform