Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import Several text files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01462781
Message ID:
01462796
Vues:
58
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform