This will remove occurances of multiple spaces.
lcStr = ALLTRIM(lcOriginalStr) && remove leading and trailing spaces
DO WHILE AT(" ", lcStr) > 0 && look for double space
lcStr = STRTRAN(lcStr, " ", " ", 1, 1) && convert double space to single
ENDDO
I do not know how to get UT to not remove spaces.
>Is there any VFP routines that can remove (or replace) multiple space occurances in the middle of a string?
>
>I am processing data from another source. The NAME comes across as:
>
>FirstName
LastName
>
>I'd like to strip out the multiple spaces and leave it with just one space.
Dennis Lindeman