Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox in a grid
Message
De
23/11/2011 02:59:43
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:
01529646
Vues:
47
>Wow you are fast. However that doesn't sem to fix it. I have made sure all the events / methods are actually firing and they are. It seems the cusror needs a boost like "CusrorUpdate" . But I know this isn't the first time anyone has tried this so there must be an explanation out there.

It is possible that your checkbox's controlsource is being updated _after_ your code fires. So you may set a flag somewhere that its value has changed, and then move the code into grid.valid() or ARCC, to run only if the flag is set. IOW, run it a bit later when the focus leaves the checkbox. Or move it to checkbox.valid - valid is supposed to run after the control.value is written into the controlsource.

It's been years since I had this problem, and I don't remember how I solved it, but some such behavior was the cause.

Another thought: you may unbind your checkbox, and specifically do a replace (fieldname) with this.value in .click() or some such method (interactivechange, perhaps) and then run your code.

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