Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import Several text files
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01462781
Message ID:
01462796
Views:
60
You can use APPEND MEMO [OVERWRITE] in combination with FILETOSTR().

>Thank, but the problem is that i will selecct many files from a forder and never be the same name. Today may be myText1.txt,myText2.txt ,myText3 .txt and another day change to MyFile1.txt,myFile2.txt, myText3.txt.
>
>bye
>
>
>>>Hi, how can i import several text files to a memo field?, example I have a directory with many text files, i know how to import one to one, but when i try to transfer all this files(5) to my memo field, i only can select one no more than one.
>>>
>>>bye
>>
>>What is your definition of import? If to you it means putting several text file content into a single memo then:
>>
>>
replace myMemo with ;
>>  FileToStr( 'myText1.txt') + chr(13) + chr (10) +;
>>  FileToStr( 'myText2.txt') + chr(13) + chr (10) +;
>>  FileToStr( 'myText3.txt') + chr(13) + chr (10) +;
>>  FileToStr( 'myText4.txt') + chr(13) + chr (10) +;
>>  FileToStr( 'myText5.txt')
>>
Cetin
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform