Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trimming the empty line in TEXT...ENDTEXT
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00688574
Message ID:
00688632
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform