Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd Date behavior with CSV file
Message
From
22/07/2002 08:13:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/07/2002 22:27:42
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00680833
Message ID:
00681058
Views:
15
>If I create a cursor and put in two dates then copy those to a CSV file, shouldn't they come back as the same date when appending? Check out this code and tell me why it is behaving the way it is.
>
>
>CREATE CURSOR x (date d)
>FOR i = 1 TO 2
>    INSERT INTO x VALUES (DATE())
>ENDFOR
>COPY TO test.csv TYPE csv
>*Output to test.csv looks like
>*date
>*07/20/2002
>*07/20/2002
>APPEND FROM test.csv TYPE csv
>MODIFY FILE test.csv nowait
>GO TOP
>BROWSE NOWAIT
>
Tom,
It's a bug in VFP7. If you strip the header line and append as 'delimited' it works.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform