keepingbusy
Programmer
Hi All
Having read some of the threads regarding "Reading DAT Files" I have been able to convert one into a .txt file. The fields are all Character type. Please excuse the lengthy post but it may be easier to explain. The file is now in the format of 20 lines, CUSTOMER being the first, here's some data:
I'm not bothered about the field names from the DAT file showing, I can remove them once I get the info into a table, so here's my question:
How can I get the above into a table I've named aftl.dbf with field names field01, field02 etc (all of which are character fields)
I've tried the import wizard in VisFox and also used the import and append from commands without success, import from does not recognise the .txt file and append from states "Not a table". The import wizard puts the data into two fields only.
Look forward to any replies
Lee
VisFox Version 6 User / Windows ME
Having read some of the threads regarding "Reading DAT Files" I have been able to convert one into a .txt file. The fields are all Character type. Please excuse the lengthy post but it may be easier to explain. The file is now in the format of 20 lines, CUSTOMER being the first, here's some data:
Code:
CUSTOMER....... A Plant
INV ADD........ Hall Lane
LOC ADD........ Union Road Indust. Est
CERT NO........ 4101
INSP DATE...... February
NEXT INSP...... August
TEL NO......... 01234 234567
INSPECTOR...... D Jones
QUANTITY....... 24
VISITS......... 2
CONTRACT NO.... 398
COST...........
LOC TEL NO.....
SPECIAL INSTRUC PARENT COMPANY SIGNED
CUSTOMER REF... A103
LAST INSPECTION 02.02.02
TYPE........... 3 FG
(spare)........ 13 DP
(spare)........ 4 W G
(spare)........ 1 FB
CUSTOMER....... A jones
INV ADD........ City Road
LOC ADD........ Union Road Indust. Est
CERT NO........ 4102
INSP DATE...... March
NEXT INSP...... November
TEL NO......... 01234 678967
INSPECTOR...... J Williams
QUANTITY....... 12
VISITS......... 4
CONTRACT NO.... 405
COST...........
LOC TEL NO.....
SPECIAL INSTRUC PARENT COMPANY SIGNED
CUSTOMER REF... A205
LAST INSPECTION 12.11.03
TYPE........... 3 FG
(spare)........ 13 DP
(spare)........ 4 W G
(spare)........ 1 FB
How can I get the above into a table I've named aftl.dbf with field names field01, field02 etc (all of which are character fields)
I've tried the import wizard in VisFox and also used the import and append from commands without success, import from does not recognise the .txt file and append from states "Not a table". The import wizard puts the data into two fields only.
Look forward to any replies
Lee
VisFox Version 6 User / Windows ME