Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove excessive spaces in string
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Remove excessive spaces in string
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01414370
Message ID:
01414370
Views:
115
I have a string that contains many spaces. For example
x = 'test1    test2 test3    test4  test5       test6'
how can I format the string to contain only one space between the 'test' values. For example how do get it to do the following:
x = 'test1 test2 test3 test4 test5 test6'
I thought about using strtran() command but I don't it works the way I want it too.

Thanks
Nick
Next
Reply
Map
View

Click here to load this message in the networking platform