Text Area question...

BlitzPlus Forums/BlitzPlus Beginners Area/Text Area question...

OverDozing(Posted 2005) [#1]
Hello,

Is there an easy solution to replace a 'Line Feed' by a 'backspace' or 'del' inside a TextArea.

if I had this in the text area:
text1
text2
text3

I am expecting this:
text1, text2, text3

I tried this but this is not removing the 'line feed':

Function Formatmyarea()
TMPmyareaFormat$=TextAreaText$( Fieldmyarea )
TMPmyareaFormat$=Replace$(TMPmyareaFormat$,Chr$(13),", ")
SetTextAreaText Fieldmyarea,TMPmyareaFormat$
End Function


OverDozing(Posted 2005) [#2]
oh, I found the solution ...
If you may need that one day...

Function Formatmyarea()
TMPmyareaFormat$=TextAreaText$( Fieldmyarea )
TMPmyareaFormat$=Replace$(TMPmyareaFormat$,Chr$(13)+Chr$(10),", ")
SetTextAreaText Fieldmyarea,TMPmyareaFormat$
End Function


Grey Alien(Posted 2005) [#3]
CR LF baby