Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox in Grid
Message
De
14/11/1999 00:12:34
 
 
À
13/11/1999 23:11:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00291056
Message ID:
00291061
Vues:
27
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform