Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which methods to use for a listbox?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01104865
Message ID:
01105132
Vues:
17
>>>So, are you saying that these events are independent on each other and the same code should be in both methods? Or could you please elaborate more on what do you mean? I put wait window in each of these methods and I see:
>>>
>>>InteractiveChange
>>>Click
>>>LostFocus
>>
>>
>>Just an aside, using WAIT window for checking event firing is potentially problematic as the WAIT WINDOW itself can cause events to fire when they wouldn't otherwise. It is better to use DEBUGOUT and check the debugoutput window in the debugger. Not only does DEBUGOUT remove the introduction of additional events but if you mistakenly forget to remove it it has no impact on runtime.
>
>Yes, I agree. On the other hand, does your observation also applies to WAIT WINDOW with timeout as I used?

Yes because the wait window causes a focus change which can fire events, whereas DEBUGOUT does not create a new window in the UI. This is just a heads up comment.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform