AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Comma or not comma or ... ?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
BoBoĻ
Guest





PostPosted: Thu Mar 06, 2008 3:52 pm    Post subject: Comma or not comma or ... ? Reply with quote

Won't work.
Code:
    MsgBox ; comma is missing
    (LTrim
    a line
    a 2nd line
    the last line
    )
Working...
Code:
    MsgBox, ; comma added
    (LTrim
    a line
    a 2nd line
    the last line
    )

Might be covered by this, BTBH ... I'm not sure Shocked
Quote:

[Escape Sequences]
Tip: The first comma of any command may be omitted (except when the first parameter is blank). For example:

MsgBox This is ok.
MsgBox, This is ok too (it has an explicit comma).


A bug? A feature??
Back to top
Oberon



Joined: 18 Feb 2008
Posts: 408

PostPosted: Thu Mar 06, 2008 3:57 pm    Post subject: Reply with quote

Splitting a Long Line into a Series of Shorter Ones - Method #2 wrote:
Code:
; EXAMPLE #2:
FileAppend,  ; The comma is required in this case.
(
A line of text.

So it's documented.
Back to top
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Thu Mar 06, 2008 5:27 pm    Post subject: Reply with quote

Thanks, I remember to have seen that too, but wasn't sure if this has to be taken as mandatory. To add something similar to this would make sense, or?
Quote:
... The first comma of any command may be omitted (except when the first parameter is blank, or its parameters are set using a continuation section).
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Fri Mar 07, 2008 4:46 pm    Post subject: Reply with quote

The documentation has been changed as you suggested.

Thanks.
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Sat Mar 08, 2008 1:19 am    Post subject: Reply with quote

I recommend this re-wording...

Quote:
The first comma of any command should not be omitted.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group