Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
APPEND FROM command
Message
De
19/04/2002 08:22:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00646828
Message ID:
00646845
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform