Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strip out unnecessary spaces
Message
From
05/05/2004 14:55:11
 
 
To
05/05/2004 14:40:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901298
Message ID:
00901302
Views:
23
This message has been marked as the solution to the initial question of the thread.
>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...

Try
x = "John A. Doe             555 MyStreet   "
Do while Space(2) $ x
	x = Strtran(x, Space(2), Space(1))
EndDo 
?x 
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform