Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strip out unnecessary spaces
Message
 
To
05/05/2004 14:40:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901298
Message ID:
00901301
Views:
21
>Ok, don't know where my mind is today because I have become stumped on what should be a simple function. I have the following value:
>
>
>mvalue = "John A. Doe             555 MyStreet   "
>
>and I want mvalue to equal:
>
>mvalue="John A. Doe 555 Mystreet"
>
>Yet I cannot seem to do it without removing all of the spaces...

Using Foxtools is easy, but I do not know if you want or are able to use it
set library to foxtools

mvalue = reduce(mvalue)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform