Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox won't change it's value properly.
Message
From
26/01/2005 14:25:10
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00980878
Message ID:
00980893
Views:
50
>Hi, I have some a custom checkbox control that inherits from the standard textbox control.
>
>When I use this control and either bind it to a variable or a field in a table I have a bug that comes up where after the second time the value of the checkbox changes, I must click on the checkbox twice before the it's value is changed.
>
>I have some code in the got focus event of this control. I have tried removing code from the got focus event but it didn't fix this problem.
>
>I have heard that foxpro sometimes has problems with the checkbox control when there is code in the interactive change event but this is not my case here.
>
>Another odd behavior, if I put a messagebox() in the interactive change event of the checkbox, this problem does not manifest. Altough I can't afford to put a messagebox() there.
>
>Has anyone else ever had a similar problem ?

I remember seeing this problem in the past, but I don't have access to the system that had that problem. Try putting this.Value = this.Value in the InteractiveChange.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform