another convertion problem:
how can i convert a .txt file to a .dbf if i know the file is tab delimited. I have been importing it in through the wizard, however if there is an automated way to do it that would be so awsome.
mrF,
I know it is tab delimited but i do not know how many fields the file will have. so i could do what you said with a generic set struc, but i would be stuck with a lot of extra fields that i do not need. is there a way i can just import it with out the help from an existing table.
Without knowing the structure of the tab delimited file there is really no way of getting an exact match with a foxpro table without extraneous fields.
you have some options - all however are manual processes
a: Use the import wizard
b: open the tab delimited file in excel (or similar), make a note of the structure/fields/fieldtypes and create a new table from the table designer then append the tab delimited file in.
C: open the tab delimited file in excel (or similar) and choose SAVE AS DBF 2 (dbase2 table)
That will tell you (in lnCount) how many tabs there are in(the first line of) the file. You could then use CREATE TABLE to create a table with that number of fields, and then go ahead and do the APPEND FROM.
It would make an interesting programming exercise, but I think, on balance, that Mr F's ideas would be more useful.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.