Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert many text files to dbf
Message
 
 
To
01/12/2008 04:04:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01364783
Message ID:
01364799
Views:
13
>hi all,
> if i have text files as t1,t2,t5,t35,t58 ,
>
>if i create many tables with same fields(columns),and delimter type?
>how i can
>append many of text files to those tables, via same code
>
>
>
>
>*mstr empty table have fields as column1 to column32
>CLOSE all
>COPY FILE mstr.dbf TO t1.dbf
>COPY FILE mstr.dbf TO t2.dbf
>COPY FILE mstr.dbf TO t5.dbf
>COPY FILE mstr.dbf TO t35.dbf
>COPY FILE mstr.dbf TO t58.dbf
>
>
>thanks
>
>
Try
APPEND FROM TextFile1 Field1 type delimited
APPEND FROM TextFile2 Field2 type delimited
etc.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform