Working thru user guide. What is this error?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
golive
Posts: 98
Joined: Wed Jul 01, 2015 5:16 am

Working thru user guide. What is this error?

Post by golive » Sun Jul 19, 2015 3:32 am

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.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

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

Post by Simon » Sun Jul 19, 2015 5:27 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

golive
Posts: 98
Joined: Wed Jul 01, 2015 5:16 am

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

Post by golive » Mon Jul 20, 2015 12:33 am

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!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Mon Jul 20, 2015 1:45 pm

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

golive
Posts: 98
Joined: Wed Jul 01, 2015 5:16 am

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

Post by golive » Tue Jul 21, 2015 12:54 am

OK thanks, will do.

Post Reply