Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing spaces from text
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01505924
Message ID:
01505928
Views:
66
>>Has anyone removed extra spaces from a sentence stored in a variable? How is it done?
>
>What is your definition of extra spaces? Example please

If you want to remove 2 (or more) consecutive spaces in the text:
DO WHILE "  " $ YourText
   YourText = STRTRAN(YourText,"  "," ")
ENDDO
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform