Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check box in grid does not keep value, help?
Message
From
14/09/2005 11:23:09
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01049332
Message ID:
01049475
Views:
16
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform