Jump to content
Sign in to follow this  
bonebreaker

remove enters from string

Recommended Posts

bonebreaker

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
herewasplato

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
bonebreaker

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
FreeRider

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
SmOke_N

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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.