Jump to content
Sign in to follow this  
blizzedout

Unterminated String

Recommended Posts

blizzedout

ClipPut(" ' \" ' ");

Ok so normall in other languages you can use \ to comment out a quote, is there a way in autoit to do this?

Share this post


Link to post
Share on other sites
JerryD

ClipPut(" ' \" ' ");

Ok so normall in other languages you can use \ to comment out a quote, is there a way in autoit to do this?

ClipPut (" ' " & '"' & " ' ")

You can use EITHER " or ' to enclose a string. I prefer using ', but most use the more common ".

Of course, you could always use something like

ClipPut(" ' " & Chr(34) & " ' ")
but as far as I know, there's no "escape" character in the language (could be worng though!). Edited by JerryD

Share this post


Link to post
Share on other sites
blizzedout

ClipPut (" ' " & '"' & " ' ")

You can use EITHER " or ' to enclose a string. I prefer using ', but most use the more common ".

Of course, you could always use something like

ClipPut(" ' " & Chr(34) & " ' ")
but as far as I know, there's no "escape" character in the language (could be worng though!).
I ended up figuring out the first solution, but you would think that there would be an escape character, would save alot of markup \' vs & "'" &

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  

×