Jump to content

Multiline Strings


Recommended Posts

Yo,

I have a string that has lots of ' " ' and other signs that would cause a string to break. This string is very long, and changes often. I would just use ' "" ' if I could. I want to be able to do something like this, and not worry about the ' " ' signs conflicting:

$string = (<r><![CDATA[

   "Polly goes for a walk, in "Central" Park"

]]></r>)

Is there a way to do this in Autoit?

Thanks in advance.

Edited by motionman95
Link to comment
Share on other sites

Depending on how long the string is, why not use & signs? Or check if there are any single quote signs (') and put the string inside of those, like $String = '@#$(*!@(#*!@#(!*@###(*$"$%"#$%"!#!@"#@$"@#$%@#$"').

Link to comment
Share on other sites

@epdmk

I don't need the string turned into an array, (o_O). I just need to be able to do this:

"Polly goes for a walk, in "Central" Park"

Without worrying about getting errors. I also asked the question because I noticed that some languages had ways to do this...

Link to comment
Share on other sites

You have for example the string "'Mary' had a little "lamb", its nose 'was' "red" and 'white'"

Would it matter to your script if it were ""Mary" had a little "lamb", its nose "was" "red" and "white""

?

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...