Re: Comment Lines interfere with continuation lines

2012-06-28 Thread Bob Sneidar
Well that is the oddest thing. Now when I type the code in myself, I do NOT get a compile error! How odd that "WITH" can be used as a command! Livecode is indeed merciful and forgiving! In a button script: ON mouseUp pMouseBtnNo put "Test " into p1 put "THIS!" into p2 dispatch "test" t

Re: Comment Lines interfere with continuation lines

2012-06-28 Thread Peter Haworth
Maybe it's an LC version issue. I'm using 5.5 and there was no compile error flagged on the original code I published, nor on my test that simply had the line "with p1,p2" in the script. It seems you can use some reserved words as command/function names. I tried code in the format "put xxx(p1,p2)

Re: Comment Lines interfere with continuation lines

2012-06-28 Thread Bob Sneidar
That is odd because it wouldn't compile for me. Not sure why we are seeing different things. There cannot be a command or function that uses a reserved word so "with" cannot be a command or function. Bob On Jun 27, 2012, at 8:46 PM, Peter Haworth wrote: > Hi Peter, and Bob, > I see what you'

Re: Comment Lines interfere with continuation lines

2012-06-27 Thread Peter Haworth
Hi Peter, and Bob, I see what you're saying but if that's the case I would have expected to get a compile error. "with p1, p2" is certainly not a valid instruction. Although I just checked that out by inserting exactly that line in a the middle of a script - no compile error. I think it is interp

Re: Comment Lines interfere with continuation lines

2012-06-27 Thread Peter M. Brigham
On Jun 27, 2012, at 8:33 PM, Peter Haworth wrote: > Hi Craig, > I kind of see why it doesn't work. The main surprise was that the line > after the comment was correctly colored, seems like it should have been > colored like a comment, then the problem would have been obvious. I think that's beca

Re: Comment Lines interfere with continuation lines

2012-06-27 Thread Peter Haworth
How to use LiveCode > Sent: Wed, Jun 27, 2012 6:45 pm > Subject: Comment Lines interfere with continuation lines > > > I've got into the habit of surrounding changes to my scripts with a couple > of comment lines that include a reference to the bug/enhancement request > that

Re: Comment Lines interfere with continuation lines

2012-06-27 Thread Bob Sneidar
I think the way to look at this is to replace the backslash and cr with empty (which is how the compiler sees it) and then see if it makes sense. What you get is: dispatch function "xyz" to button "123" --Bug# 567 with p1,p3 Well, as you can see, it won't choke on the first line because puttin

Re: Comment Lines interfere with continuation lines

2012-06-27 Thread dunbarx
: Peter Haworth To: How to use LiveCode Sent: Wed, Jun 27, 2012 6:45 pm Subject: Comment Lines interfere with continuation lines I've got into the habit of surrounding changes to my scripts with a couple of comment lines that include a reference to the bug/enhancement request that cuased them

Comment Lines interfere with continuation lines

2012-06-27 Thread Peter Haworth
I've got into the habit of surrounding changes to my scripts with a couple of comment lines that include a reference to the bug/enhancement request that cuased them to be changed. I recently ran into this interesting situation. My original code looked like: dispatch function "xyz" to button "123