Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox in Grid
Message
From
14/11/1999 00:12:34
 
 
To
13/11/1999 23:11:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00291056
Message ID:
00291061
Views:
28
Greg, I had this problem recently too. The standard checkbox initialises as numeric, not logical, hence the Data Type Mismatch. You can solve it by initialising the checkbox controlsource variable as logical before you call the form, or including a property on the form and making that the checkbox controlsource.

Also you can follow the suggestion I was given and create a new class based on the checkbox (I call mine 'mycheckbox') and set the default value to .f., that way the checkbox is always logical when you place it on a form or in a grid.

David

>I have a Checkbox in a Grid that I wish to toggle between On and Off when a person is enrolled or not.
>
>I have follow the directions as detailed in VFP manual, concerning adding this to a Grid that is created with Data Environment:
>
>I get the following error message:
>
>Error with chkOffclEnrl - Value: Data Type Mismatch.
>
>I just click on the Checkbox when I get this error.
>
>Confused???
>
>Greg
Previous
Reply
Map
View

Click here to load this message in the networking platform