Chris,
Since I bind a checkbox to a logical field 99.99999% of the time, in my lowest level checkbox subclass I set the .Value to .f. and this lets it work much better because I can always code based on the value being .t. or .f.
>Hi - although I have been programming in VFP for sometime now, one thing that continues to catch me out is the checkbox control. Can someone reveal the secret!
>
>I use logical fields in my tables to store the value and so I maybe do something like this on one form...
>
>
>REPLACE logicalfield WITH myCheckBox.Value FOR criteria etc
>
>
>and it works just fine in other circumstances I get a data mismatch error because it appears that the mCheckBox.Value is a integer!
>
>Do I have to test for the type of variable in myCheckBox.Value before writing values to my tables or am I missing something?