Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox won't change it's value properly.
Message
De
26/01/2005 14:25:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00980878
Message ID:
00980893
Vues:
56
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform