Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert problem
Message
 
To
15/10/2003 15:16:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00839011
Message ID:
00839021
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform