Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text files
Message
De
11/02/2004 21:20:31
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
11/02/2004 17:24:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00876470
Message ID:
00876550
Vues:
10
This message has been marked as a message which has helped to the initial question of the thread.
Here's what I usually do with import files.

Build a cursor / table with the expected structures. In this case your raw data would go in one column. Have a second column with the intended structure and a field name that matches the table you're going to send the data to.

So assuming the final table structure held a field called someid c(16), the import table structure would be...

cRaw1 c(13), SomeID c(16)


USE IMPORTTABLE
APPEND FROM TEXTFILE TYPE (WHATEVER)

REPLACE ALL SomeID WITH TRANSFORM(cRaw,"9999-99-999-9999")

USE FINALTABLE

APPEND FROM IMPORTTABLE

>my text file arrives in the following format: 7045014839271,
>
>i need it to import into a table in the following format: 9999-99-999-9999.
>
>any ideas anyone?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform