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:
00901303
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
The simple way
mvalue = ALLTRIM(mvalue)
DO WHILE (SPACE(2) $ mvalue)
  mvalue = STRTRAN(mvalue, SPACE(2), SPACE(1))
ENDDO
>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...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform