Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wrong Years
Message
De
22/07/2008 16:07:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01333160
Message ID:
01333288
Vues:
9
Sergey,

Try running this...
TEXT TO lcStr NOSHOW
"Date","String","Int"
01/01/99,"String1", 15
12/25/98,"String2", 23

ENDTEXT

STRTOFILE(lcStr, "temp.csv")

CREATE CURSOR Temp (fld1 D, fld2 C(30), Fld3 I)
APPEND FROM "temp.csv" CSV
LOCATE
BROWSE NOWAIT
>>When importing from a csv file, the year portion of the dates are distorted. Example: 01/01/2009 come up as 01/01/0009. Is there a fix for this?
>
>Works fine for me in the test below. How yours CSV is different?
>
>TEXT TO lcStr NOSHOW
>"Date","String","Int"
>01/01/2009,"String1", 15
>12/25/2008,"String2", 23
>
>ENDTEXT
>
>STRTOFILE(lcStr, "temp.csv")
>
>CREATE CURSOR Temp (fld1 D, fld2 C(30), Fld3 I)
>APPEND FROM "temp.csv" CSV
>LOCATE
>BROWSE NOWAIT
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform