Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange date format in CSV
Message
De
12/08/2015 10:39:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01623191
Message ID:
01623193
Vues:
66
>I am trying reading a CSV using APPEND FROM, but the CSV contains a strange date format which cannot get recognized, any SET DATE I am trying does not work. In CSV it looks like this:
>
>2000-12-06
>
>Anybody has an idea to make the append work without the need to parse it line by line?


#1 Use regexp to manipulate the file to a format you need, read that.
#2 create a temp cursor that reads the column as character, manipulate that column, write back to disk, read result
#3 read to cursor as in #2, import from that cursor
#....
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform