Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1543 type conversion required by the datatype prop
Message
De
17/06/2016 03:34:31
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
16/06/2016 20:53:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01637446
Message ID:
01637448
Vues:
70
>>I am using VFP with MySql database. I have defined one cursoradapter. When my program execute cursorfill method VFP shows error 1543 type conversion required by the datatype property for field xxxxx is invalid. where xxxxx is date field. Why this error occurs?
>
>Additional information. xxxxx is datetime field and I using it on form with Activex DtPicker2

What happens if you give the adapter a cursor schema where that field is marked as date or datetime?

Haven't tried MySql last six years, but I know of a similar situation with SQL 2012 and later, which has a datetime2 type (seconds with up to 7 decimals - see here). This comes to VFP as a long string; I needed it only a couple of times in read-only selects, so I simply cast it as datetime in the select without delving deeper. If I had to send values back, I guess I'd first try to set it in the schema.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform