Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trimming the empty line in TEXT...ENDTEXT
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00688574
Message ID:
00688632
Views:
26
This message has been marked as the solution to the initial question of the thread.
Jaime,

Instead of
set textmerge to file1.txt
set textmerge on noshow

text
test line 1
test line 2
endtext

set textmerge off
set textmerge to
use the \ and \\ commands
set textmerge to file1good.txt
set textmerge on noshow

\\test
\endtext

set textmerge off
set textmerge to
See that the first like uses \\ instead of \. This will prevent the empty first line.

>I use TEXT...ENDTEXT to create an ASCII file to be exported to an external app. I noticed that my file is created ok with all the data in it, but it starts with an empty line. Can i get rid of it programmatically? Did i forget some setting prior to using the TEXT clause?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform