Jump to content

Multiline Strings


Recommended Posts

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""

?

Yes, it would. Thanks for clarifying. :blink:
Link to comment
Share on other sites

I'm a bit confused...

You just want a way to manually construct one of these peculiar strings, hardcoded into your source, and assign it to a variable??

$q = Chr(34)
$string = "My 'nick' on 'AutoIt' is " & $q & $q & " " & $q & "Spiff59" & $q
MsgBox(1,"",$string)

typo

Edited by Spiff59
Link to comment
Share on other sites

Ok, can you clear something up, if it is changing so often, them why do you have it hard coded into the script?

Shirley it would make more sense to have it read in from a file. If you distrabuting your script you could use fileinstall or even add it as a resource.

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...