Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox - Data type mismatch
Message
From
21/06/1999 21:52:08
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00231982
Message ID:
00232316
Views:
19
Hi Petras --

Kenneth was correct; numerics should work with 0 or 1 as the value range. Perhaps your Value property is set to a logical or something similarly strange. What I also noticed, though, was that the View Designer would get funky if you tried to use is to add "0 as checkval" to a SELECT statement. When I used the manual CREATE SQL VIEW...yadda yadda and then bound the new numeric field to the checkbox, no problem (I used Access as my remote test db).

>Hi, in a select from a remote (non-VFP) table into a local cursor I include '0 as check'. In the grid the checkbox is unchecked but as soon as it is clicked it complains bitterly of 'data type mismatch'. Debugging shows the cursor field 'check' as being numeric which I believe is a valid data type for a checkbox. Can anyone help?
>
>PS. Selecting from a VFP table using '.F. as check' works fine, unfortunately the database being used does not have logical fields/literals.
>
>Rgds
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform