Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing extra blanks in a memo field
Message
From
04/04/2000 23:44:45
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00355212
Message ID:
00355487
Views:
22
>This is another version of this program: (BTW, Mike, I found a bug in your mhHTMLcode program, you'll see by yourself)
>

The following would spin through the whole thing automagically without the UDF:

oRegExp = CREATEOBJ("Vbscript.RegExp")
oRegExp.Global = .t.
oRegExp.Pattern = "\s+" && this matches any occurrances of space, tab, ff, CR
REPLACE ALL mMemoField WITH oRegExp.Replace(mMemoField," ")


You could do a good deal more than this with the RegExp object, but it's a direct solution to the problem...
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
Reply
Map
View

Click here to load this message in the networking platform