Sign in to follow this  
Followers 0
GEOSoft

Double Quote vs Single Quote

8 posts in this topic

I just noticed that JP's converter changes Double Quotes to Single.

1) Are they interchangable in V3?

2) What are the Benefits/Drawbacks to either method?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites



Quote from CyberSlugs UNofficial helpfile:

"Strings" and 0xNumbers

Strings can be enclosed in either single or double quotes.  The option allows you to nest quotation marks by alternating single with double (or vice-versa).  If you still need to use a double quote within a double quote (or single within a single), put two marks together.

; Complicated Examples!

MsgBox(0,"", "The word 'its' is the possessive form of 'it'")

MsgBox(0,"", 'The word "it''s" is a contraction for "it is"')


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Yes they are interchangable. The only reason is that it makes using lots of " in a string easier.

You can do

' this is a double"quote'

rather than:

" this is a double""quote"

Share this post


Link to post
Share on other sites

Okay. Thanks for the info. That will make it easier on these 6o year old eyes too. I find that I sometimes have to strain to see the difference between " and * in a script, (bad font settings) where I have no trouble at all distinguishing between ' and * :whistle:


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Hi, I need to create three level quotes in one line, It's not working for me

pls, Could anyone help me

send("(Get-WmiObject -Namespace root\SMS\Site_XXX -Query "Select collectionid from SMS_Collection WHERE Name = 'software'").collectionid")

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

You win the award for being the most egregious necromancer of a thread. Really, a near 8 year old thread to ask a simple question? I hope you get molested by a corpse.

Edited by Valik

Share this post


Link to post
Share on other sites

God damn you.

3 people like this

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0