Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APPEND FROM command
Message
From
19/04/2002 08:22:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00646828
Message ID:
00646845
Views:
17
>Hi, I need to import a text file in the following format:
>
>"12";"....+....1";"Memo Text"
>
>I tried to use
>
>APPEND FROM test.txt DELIMITED WITH CHARACTER ";"
>
>But the memo field is not filled. Is there any way to do this without using Low Level file manipulation?
>
>Regards,
With an intermediate cursor you could do it (provided memo text would fit). ie:

select *, space(254) as m1 myTable where .f. into cursor crsTemp nofilter
use dbf('crsTemp') in 0 again alias crsRW
use in 'crsTemp'
select crsRW
APPEND FROM test.txt DELIMITED WITH CHARACTER ";"
replace all myMemo with m1
select myTable
append from dbf('crsRW')

PS:Not tested.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform