Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox - Data type mismatch
Message
De
21/06/1999 21:52:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00231982
Message ID:
00232316
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform