Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check box in grid does not keep value, help?
Message
De
14/09/2005 11:23:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01049332
Message ID:
01049475
Vues:
15
>I have a header/detail form with a grid for the detail part. One of the data field in the grid is a logical field and I use a checkbox to display its contents. However, when I click on the checkbox to set its value to true and i move to the next column, the check box looses its value (goes back to false). Why is this? How can I get this to work right?
>
>If I use a textbox instead of a check box, and I enter the value "T" - true -it keeps the value of true when I move the the next column.

Try

replace (this.controlsource) with this.value in (juststem(this.controlsource))


...the good place would be .checkbox.lostfocus(), or .valid(). I have had this problem before and this is how I solved it. Just don't remember where exactly I put the line, and whether it also required a nodefault.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform