Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to compress space in string?
Message
From
23/05/2003 04:15:53
 
 
To
23/05/2003 03:46:39
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00792083
Message ID:
00792090
Views:
21
>Hi
>
>I have a string like
>
>"IOBJ_IX I,PROJE_T_IX I,PARENT_IX I,ITYP I,ISUBTYP I"
>
>and would like to transform it to
>
>"IOBJ_IX I,PROJE_T_IX I,PARENT_IX I,ITYP I,ISUBTYP I".
>
>IOW I like to reduce multiple occurences of Space to one Char.
>
>What is the best command to use?
>
>TIA

Agnes
cStr = "ABC  XYZ  123"
? StrTran(cStr, "  ", " " ) && Replace double spaces with single spaces
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform