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