Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing embedded spaces
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00561036
Message ID:
00561050
Views:
31
Or even shorter
>
>cStringIn = 'Peter the embedded      space    man'
>cStringOut = cStringIn
>
do while space(2) $ cStringOut
    cStringOut = strtran( cStringOut, space(2), space(1) )
enddo
>
>? cStringOut
>
>
< SNIP >

You can also use Reduce( ) function from FoxTools library
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform