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
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)
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'
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
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
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
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
: 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
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