Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textmerge keeps inserting a blank line
Message
De
25/03/2010 15:46:33
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01457219
Message ID:
01457256
Vues:
64
You're right, I didn't need TEXT...ENDTEXT. STRTOFILE() works fine and I'm not sure why I went with TEXT...ENDTEXT. I guess TEXT...ENDTEXT is embedded in my brain since I've been generating a lot of HTML content lately.

Thanks.

>I'm not sure why do you need TEXT...ENDTEXT. Try
>
>\\<<m.lcFileContent>>
>
>
>Or even simpler
>
>STRTOFILE(FILETOSTR(sometextfile), lcOutputFile, .T.)
>
>
>>I'm using the TEXTMERGE command to combine several text files into one as follows:
>>
>>
>>SET TEXTMERGE ON TO myfile.txt ADDITIVE
>>
>>FOR m.liFile = 1 TO 10
>>   * variable 'sometextfile' below will change to a different filename...
>>   m.lcFileContent = FILETOSTR(sometextfile)
>>   TEXT PRETEXT 1+2+4
>>   <<m.lcFileContent>>
>>   ENDTEXT
>>ENDFOR
>>
>>=CLOSE(_TEXT)
>>
>>
>>After running this code, the resulting file always has an empty line preceding the contents of each individual line even though I've specified the PRETEXT value of 2.
>>
>>Is this a bug or am I screwing up somewhere?
>>
>>TIA
>>Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform