Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert problem
Message
 
À
15/10/2003 15:16:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00839011
Message ID:
00839021
Vues:
21
>the problem is im using another language ( WINDEV )
>and im using the oledb from foxpro
>
>champdate est une chaîne = "{0001-01-01;00:00:00 a.m.}"
>srequete = "insert into connection (IDFILE,descr,cpath,DTE_IN) values ("+dossier+",'"+descr+"','"+path+"','"+champdate+"')"
>
>this is my code
>
>in want to put it in string but i doesnt know the good format for the datetime field

Did you check the help and samples for CTOT() function? It may help you.

As an example, this will be correctly converted to datetime:

SET DATE YMD
CTOT("2000/10/24 13:30:00")

So you can try format the datetime string according to your SET DATE on VFP side and pass it through.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform