Sign in to follow this  
Followers 0
bonebreaker

remove enters from string

5 posts in this topic

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

Share this post


Link to post
Share on other sites



Look at StringReplace()

Use @CR, @LF or @CRLF for the "replacestring" parm....


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Hi,

The StringReplace is a good idea... an other way could be the "StringRegExpReplace"


FreeRiderHonour & Fidelity

Share this post


Link to post
Share on other sites

Hi,

The StringReplace is a good idea... an other way could be the "StringRegExpReplace"

That's over kill IMO.

[center]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.[/center]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0