Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox in a grid
Message
De
03/01/2012 04:47:03
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01529523
Message ID:
01532070
Vues:
53
>I tried debugging a little more by moving the call to the "UpdateAccumulators" method from the Interactivechange method to the valid() as suggested. It still seems to be "one click" behind. The accumulators don't update until clicking another row in the grid.
>
>I put message boxes in each of the involved methods to ensure they were firing as expected. They did.
>
>I watched step by step in the debugger and the code acts exactly as expected and all accumulators get updated and display the expected values.
>
>When I run the code outside of the debugger, each of the message boxes fire indicating to me the code has passed through each of the methods, but the accumulators don't get updated.
>
>I am rather baffled at this point.

Messagebox() messes with your event chain. It takes focus, causing the grid (actually, the whole form) to lose focus... so the observer influences the observed event. You may try less invasive methods, like debugout, or event logging, or tracing. Breakpoint in a debugger also takes focus away, which may cause some side effects.

Which is one of the reasons I don't remember how, and whether at all, I have solved that one back in 2003.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform