Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd Date behavior with CSV file
Message
De
22/07/2002 08:13:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
20/07/2002 22:27:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00680833
Message ID:
00681058
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform