Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement