Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stripping TABs
Message
 
 
To
06/10/2008 17:45:18
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01353152
Message ID:
01353154
Views:
19
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform