neo van matix 0 Posted August 27, 2010 Hello, i'm actually need to remove alle linebreaks from a string. The string contains data from an editbox. My problem: If i output the string via msgbox(), there's no "character" for the linebreak (like \n or @CRLF). I tried to remove this break with StringSplitCR (nothing happens), and tried to replace @CRLF with StringReplace($str, @crlf, "") - nothing happens. What can i do? The editbox-text: 10.10.10.10, 12.12.12.12, 13.13.13.13 $temp = GUICtrlRead($i_camips) StringReplace($temp, @crlf, "") MsgBox(0, "", $temp) Attention! English noob ^^ Share this post Link to post Share on other sites
kaotkbliss 146 Posted August 27, 2010 According to your code above, it may actually be working, except you don't see it because you are rereading the variable before the change. $string=StringReplace($temp, @crlf, "") MsgBox(0, "", $string) 010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueekWe're gonna need another Timmy! Share this post Link to post Share on other sites
neo van matix 0 Posted August 27, 2010 According to your code above, it may actually be working, except you don't see it because you are rereading the variable before the change.$string=StringReplace($temp, @crlf, "")MsgBox(0, "", $string)You're right, thanks! It works Attention! English noob ^^ Share this post Link to post Share on other sites