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:
00561058
Views:
24
There you go! :)

>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
Hector Correa
Previous
Reply
Map
View

Click here to load this message in the networking platform