Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use the TAB character [CHR(9)] in an output file
Message
 
 
À
28/03/2002 12:46:41
Chris Laffoon
Florists' Interlink, Inc.
Paragould, Arkansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00638552
Message ID:
00638653
Vues:
32
Chris,

Just as another alternative. TEXTMERGE doesn't suffer from this problem and I think is a better solution to create files than SET ALTERNATE
TAB = chr(9)
SET TEXTMERGE TO C:\OUTPUT.TXT
SET TEXTMERGE ON NOSHOW

\TEXT1<<tab>>TEXT2<<tab>>TEXT3

SET TEXTMERGE OFF
SET TEXTMERGE TO
You can also do it as one expression

\<< 'TEXT1' + CHR(9) + 'TEXT2' + CHR(9) + 'TEXT3'>>

>[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.
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