Hello,
I might have a string which contains text, newline characters and spaces which is fine.
And also, I might have a string which contains just newline characters or just spaces or both, which is not fine.
I can remove spaces by using function TRIM(), but I am not sure how to remove newline characters from the string.
I am thinking of using functions Pos() and Replace() in a loop to replace newline characters with nothing, but it is does not look like an altimate way to solve this problem.
Is there any other simpler way to remove newline characters from a string or my choices are limited and I have to use Pos(0 and Replace() functions.
Thank you
elyubron
Start Free Trial