Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How to use the TAB character [CHR(9)] in an output file
[VFP7] I have some code that creates a text file as its output. I need to insert tabs in between sections of text, so I used the following code:
SET ALTERNATE TO C:\OUTPUT.TXT
SET ALTERNATE ON
? 'TEXT1' + CHR(9) + 'TEXT2' + CHR(9) + 'TEXT3'
SET ALTERNATE OFF
CLOSE ALTERNATE
When I read the output file, instead of finding true TAB characters, it has spaces in it that imitate the tabbed columns.
Any ideas?
-Chris Laffoon
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement