Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading data from text files.....???
Message
From
22/06/1999 16:23:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00232388
Message ID:
00232708
Views:
16
>Hi John
>
>No, there are no memo fields in the target table. I do think that I'm approaching the problem the wrong way though - I'm using the command
>
>APPEND FROM TEXTFILE.DAT TYPE SDF FIELDS MYTABLE.Account_no, MYTABLE.Acc_name, etc etc
>
>The problem is that the system trys to dump all the info into the first field "Account_no" and nothing into the next fields. I actually want the first 20 characters of the text line placed into field 1, the next 20 into field 2 etc...

You have to create a temporary table or cursor, which will have exactly these widths, and the names you need, and then append SDF from the textfile into that table, then select your target table and append from this temp table - it will go name by name into the corresponding fields.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform