Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing extra blanks in a memo field
Message
From
04/04/2000 16:24:32
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00355212
Message ID:
00355250
Views:
25
>>noxspaces = strtran(str2bclean,space(2),"") &&remove blanks more than one space

>This will convert "test 1 2" to "test 12"
>which I don't think is the desired effect.

It'll only strip 2 spaces as a pair. I wrote it that way because it's easier to read than quote-space-space-quote, especially considering how UT strips duplicate spaces itself.

Actually, if there are two space between words, this code will leave NO spaces, running the words together. That would be bad.

Disregard this routine, it won't do what it's supposed to do.
Previous
Reply
Map
View

Click here to load this message in the networking platform