Page 1 of 1

Working thru user guide. What is this error?

Posted: Sun Jul 19, 2015 3:32 am
by golive
Hello

I am starting off with Livecode and am working thru the user guide.
I have some beginner questions:

On page 93 (section 4.2.9) it gives an example of the answer dialog. I copied the code in from the PDF but get an error.
I retyped it and that line worked fine. I left in the problem line commented out. But it still gives an error.
19-07-2015 12-21-41 PM.png
So:
Why does a line that is commented out give an error. Shouldn't it be ignored?
What does this error message mean?

TIA.

Re: Working thru user guide. What is this error?

Posted: Sun Jul 19, 2015 5:27 am
by Simon
Hi golive,
You have to be careful with copying and pasting as the data can contain binary information.
Binary data won't show up in the script editor.
If you must, paste the data into a text editor first, then copy that, it will remove any binary stuff.

Simon

Re: Working thru user guide. What is this error?

Posted: Mon Jul 20, 2015 12:33 am
by golive
Simon wrote:Hi golive,
You have to be careful with copying and pasting as the data can contain binary information.
Binary data won't show up in the script editor.
If you must, paste the data into a text editor first, then copy that, it will remove any binary stuff.

Simon
OK thanks, will do.
Surprised that a comment line cannot have binary data!

Re: Working thru user guide. What is this error?

Posted: Mon Jul 20, 2015 1:45 pm
by Klaus
Hi golive

a (single or double) SLASH is actually NOT a valid comment sign in Livecode!

Use one of these:
...
# comment line in LC script
...
-- comment line in LC script
...
/* comment line in LC script */
...


Best

Klaus

Re: Working thru user guide. What is this error?

Posted: Tue Jul 21, 2015 12:54 am
by golive
OK thanks, will do.