Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7: Tab Character in SET Alternate To file
Message
De
28/07/2002 09:24:13
 
 
À
27/07/2002 23:42:44
Jim Underwood
Apollo Information Systems, Inc.
Houston, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00683311
Message ID:
00683323
Vues:
21
>Hi All,
>
>For some reason in VFP7 SP1, the tab character (CHR(9)) is being converted to spaces when output using the SET ALTERNATE TO command. Actually I have noticed that it's tabbing to a specific column (like in Word).
>
>How do I force VFP to just output the tab character?
>
>Here's my code:
>
>SET ALTERNATE TO ("log.txt")
>SET ALTERNATE ON
>?"XXX" + CHR(9) + "YYY"
>?"A" + CHR(9) + "B"
>SET ALTERNATE OFF
>SET ALTERNATE TO
>
>This generates the following output
>
>XXX     YYY
>A       B
>
>
>I have made sure that the "Keep Tabs" option is selected in the Options | IDE tab for text files.
>
>TIA.
>
>Jim Underwood

Except Sergey's suggestion you can try:
SET textmerge TO ("log.txt")
SET textmerge ON
text
<<"XXX" + CHR(9) + "YYY">>
<<"A" + CHR(9) + "B">>
endtext
SET textmerge OFF
SET textmerge TO
HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform