Jump to content

Recommended Posts

Posted

Hi again,

I wonder what is the best way to declare strings : do I have to use double quotes "foo" or single quotes 'foo' ?

I ask this question because in the PHP language, it is better to use single quotes, and it could be different with AutoIt...

Best regards,

Zopieux :)

I'm not English, then please excuse my spelling :)

  • Moderators
Posted

OK, thanks for the tips, I didn't see the "datatypes" chapter.

You can find it two different ways:
  • Under the index as "Datatypes"
  • Under Contents -->AutoIt -->Language Reference -->Datatypes
Posted

I personally have a problem with single quotation since I often confuse them for apostrophe.

Example:

$var = 'The ball is not mine, it is Jona's

Although this doesn't happen to me all the time, I'd use double quotation just to be on the safe side, since after coding hundred of lines, it's hard to find that kind of mistake.

[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

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
×
×
  • Create New...