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:02:08
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
 
To
04/04/2000 15:45:04
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00355212
Message ID:
00355227
Views:
25
str2bclean = memo.field
noxspaces = strtran(str2bclean,space(2),"") &&remove blanks more than one space
noxlines = strtran(noxspaces,chr(13)+chr(10),"") &&see below
cleanstr = Upper(noxlines) &&or some other finishing touch

&& note, this method assumes you want a single unbroken string from your memo field. This won't work if you want to preserve line breaks, yet strip extra blank lines.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform