Message
 
To
25/03/2010 13:40:14
Mike Sue-Ping
Cambridge, Ontário, Canada
General information
Fórum:
Visual FoxPro
Category:
Programação, sintaxe e comandos
Miscellaneous
ID da thread:
01457219
ID da mensagem:
01457224
Views:
101
This message has been marked as the solution to the initial question of the thread.
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
--sb--
Previous
Next
Responder
Mapa
View