_Kurt Posted December 21, 2006 Share Posted December 21, 2006 Title says it all. I'm wondering if there is a way to replace an @CRLF with nothing or a space. Thanks, Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 21, 2006 Developers Share Posted December 21, 2006 (edited) Title says it all. I'm wondering if there is a way to replace an @CRLF with nothing or a space.Thanks,KurtSure,. just do as the title states ... should work fine Edited December 21, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
_Kurt Posted December 21, 2006 Author Share Posted December 21, 2006 Maybe I'm doing something wrong. Let me look over a couple of stuff. I've been racking my brain over this for twenty minutes. I'll be soon to respond, Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
theguy0000 Posted December 21, 2006 Share Posted December 21, 2006 (edited) if it's not working for you, might want to try all CRs the LFs individually. just incase they dont use Windows-style line-breaks Edited December 21, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
_Kurt Posted December 21, 2006 Author Share Posted December 21, 2006 (edited) Well it seems to work fine for an "ordinary" string: Example: $string = "line 1" & @CRLF & "line 2" $newstr = StringReplace($string, @CRLF, "") oÝ÷ ÛMúì,¶ $newstr = $string ;<-- that's not right Not sure why this isn't working. Thanks, Kurt Edited December 21, 2006 by _Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
_Kurt Posted December 21, 2006 Author Share Posted December 21, 2006 if it's not working for you, might want to try all CRs the LFs individually.just incase they dont use Windows-style line-breaks$newstr = StringReplace($Text, @CR & @LF, "")This still does not work for me.Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 21, 2006 Developers Share Posted December 21, 2006 Well it seems to work fine for an "ordinary" string: Example: $string = "line 1" & @CRLF & "line 2" $newstr = StringReplace($string, @CRLF, "") oÝ÷ ÛMúì,¶ $newstr = $string ;<-- that's not right Not sure why this isn't working. Thanks, Kurt Just save the string to a file and look at it with an HexEditor to check the exact content .. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
_Kurt Posted December 21, 2006 Author Share Posted December 21, 2006 Okay, thanks for a solution! Is there a different way this could be done? Since that may require more time to write/read the file Thanks again, Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 21, 2006 Developers Share Posted December 21, 2006 (edited) Okay, thanks for a solution! Is there a different way this could be done? Since that may require more time to write/read the fileThanks again,KurtThis is just for debugging ... not permanent !!! Its to check what characters are realy there ... You could try , as suggested, to replace the CR's and LF's separately:$newstr = StringReplace($string, @CR, "")$newstr = StringReplace($newstr , @LF, "") Edited December 21, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
_Kurt Posted December 21, 2006 Author Share Posted December 21, 2006 THANK YOU JdeB! That worked perfectly Sorry for misunderstanding the seperate @CR and @LF's before. Thanks again, Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
theguy0000 Posted December 21, 2006 Share Posted December 21, 2006 (edited) This is just for debugging ... not permanent !!! Its to check what characters are realy there ... You could try , as suggested, to replace the CR's and LF's separately:$newstr = StringReplace($string, @CR, "")$newstr = StringReplace($newstr , @LF, "")yeah, that's what I meant Edited December 21, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 22, 2006 Moderators Share Posted December 22, 2006 $newstr = StringReplace(StringStripCR($string), @LF, '') Doesn't work? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now