bonebreaker Posted February 1, 2007 Share Posted February 1, 2007 Hi, i've been searching for a while but can't discover any function that would delete linebreaks from my string. My try was this: $executeit=StringAddCR ($mystring) StringStripCR($executeit) execute($executeit) thanks My programs:[topic="40019"]Sudoku[/topic], [topic="41258"]Suitcase game & Random jokes[/topic], [topic="41641"]8 Queens[/topic], [topic="41679"]Puzzle Generator[/topic], [topic="42045"]Snake[/topic]My UDFs:[topic="41309"]Prime functions & Prime game[/topic]Other:Fake emailer Link to comment Share on other sites More sharing options...
herewasplato Posted February 1, 2007 Share Posted February 1, 2007 Look at StringReplace() Use @CR, @LF or @CRLF for the "replacestring" parm.... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
bonebreaker Posted February 1, 2007 Author Share Posted February 1, 2007 Thx, i forgot to try @CF when i tried to do it this way My programs:[topic="40019"]Sudoku[/topic], [topic="41258"]Suitcase game & Random jokes[/topic], [topic="41641"]8 Queens[/topic], [topic="41679"]Puzzle Generator[/topic], [topic="42045"]Snake[/topic]My UDFs:[topic="41309"]Prime functions & Prime game[/topic]Other:Fake emailer Link to comment Share on other sites More sharing options...
FreeRider Posted February 1, 2007 Share Posted February 1, 2007 Hi, The StringReplace is a good idea... an other way could be the "StringRegExpReplace" FreeRiderHonour & Fidelity Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 1, 2007 Moderators Share Posted February 1, 2007 Hi,The StringReplace is a good idea... an other way could be the "StringRegExpReplace"That's over kill IMO. 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