Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stripping TABs
Message
 
 
À
06/10/2008 17:45:18
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01353152
Message ID:
01353154
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>This is in a loop. I'm trying to indent with TABs according to the number of LoopLevel. What happens though is as it loops through, more tabs are added to the beginning than I want. In fact, I would like to strip out any tabs in the beginning when the looping is completed. It could be none, or it could be 20. Is there a way to do that? I only include this code because the actual loop contains a lot more code than is needed here.
>
>SELE X12Message
>SCAN
>	Do bunches of stuff
>	oResponse.EligReport = ;
>		REPLICATE(CHR(9),X12Message.LoopLevel) + ;
>		oResponse.EligReport + ALLTRIM(oDetails.Desc) + ': ' + ALLTRIM(oDetails.FieldVal) + CHR(13)
>ENDSCAN
>
You can use LTRIM().
ccTAB = CHR(9)
lcStr = ccTAB + ccTAB + "text"
? lcStr
? LTRIM(lcStr, ccTAB)
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform