General information
Category:
Coding, syntax & commands
>How do I strip out extra spaces and carriage returns and line feeds from character strings that are in memo fields?
There is an optimized function in FOXTOOLS.FLL that does exactly that.
I highly recommended getting familiar with the string functions in Foxtools. They are easy to use.
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=chrTran(myString, dblCr, chr(13))
EndDo
You can apply the same kind of loop for double-anythings, or to translate whatever you set dblCR to.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only