Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strip Multiple Spaces
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00339153
Message ID:
00339257
Views:
20
>>>Not directly in VFP, however, the foxtools library has the function Reduce(). That will handle the removal of spaces appropriately. You might want to look at my Extended Foxtools Help File (under Coding, Syntax and Commands) available in the UT download section.
>>
>>Again, you invoke the wrath of the WSH gods...how about:
>>
>>oRegExp = CREATEOBJ("Vbscript.RegExp")
>>oRegExp.Global = .t.
>>oRegExp.Pattern = "\s+" && this matches any occurrances of space, tab, ff, CR
>>cVar = oRegExp.Replace(cVar," ")

>
>Unintentionally, I assure you. I was more worried about the foxtools gods< g >.

A likely excuse. And next time, you'll claim "The Devil made me do it!"
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform