Clear all line breaks
Posted by: fredometro on
Jan 6th, 2004 |
Filed under: MS-Access
Quertion: Can anyone figure out a little function that will clear all line breaks (Chr(10)+Chr(13)) in a string?
Matt(+)
Fredix gave this response on 1/17/2002:
Hi!
Here is a function I use:
Public Function ClearBreaks(TheString)
dim ch, result as string
dim i as integer
result = “”
if len(TheString) = 0 then
ClearBreaks = “”
exit function
end if
for i = 1 to len(TheString)
ch = mid(TheString,i,1)
if ch <> chr(13) and ch <> chr(10) then
result = result & ch
else
if ch = chr(13) then result = result & ” ”
end if
next i
ClearBreaks = result
end function
With this, you will have the line breaks replaced by a space.
Regards.


December 12th, 2009 at 6:31 am
Selena Spice
December 12th, 2009 at 6:32 am
Asian Porn Lovers
December 12th, 2009 at 6:34 am
Busty Britain
December 12th, 2009 at 6:35 am
Tranny Ranch
December 12th, 2009 at 6:37 am
Diddy And Serena
December 12th, 2009 at 6:38 am
Your Caitlynn
December 12th, 2009 at 6:39 am
All Twins Pass
December 12th, 2009 at 6:40 am
I Heart Jenny Chu
December 12th, 2009 at 6:41 am
Club Sheena
December 12th, 2009 at 6:43 am
Ebony Jewels
December 12th, 2009 at 6:45 am
Ladies Love Toys
December 12th, 2009 at 6:46 am
I Swallowed A Stranger
Add A Comment
You must be logged in to post a comment.