Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stripping space from strings
Message
 
 
To
25/11/1996 19:27:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00013477
Message ID:
00013668
Views:
27
>How do I strip out extra spaces and carriage returns and line feeds from character strings that are in memo fields?

BUGFIX:

Here's a non-API method for those annoying double carriage returns:

* First, get rid of line feeds:
myString=chrTran(MyString,chr(10),"")
* Now, iteratively remove all double carriage returns.
dblCR=chr(13)+chr(13)
Do While dblCR $ myString
myString=StrTran(myString, dblCr, chr(13))
***** Prior posting used ChrTran in previous command. Wrong.
EndDo
Previous
Reply
Map
View

Click here to load this message in the networking platform