"Unquoted literal" error - big BUG in LC?

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
croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

"Unquoted literal" error - big BUG in LC?

Post by croivo » Thu Mar 27, 2014 9:10 pm

Here is my short story... Everything was working fine - all code was running without any problems, but then, suddenly, I got "Unquoted literal" error for almost every button in my stack that has some code. Weird thing is that SAME code was running fine, but suddenly it went weird.
Can anybody tell me if I did something wrong (I think I didn't because everything is same as before) or this is just another BIG, very frustrating bug in LiveCode? I tried to re-run my stack with 6.1, 6.5, 6.5.2 and 6.6 version of LC.
Please help.
Cheers
Attachments
myProblem.PNG

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: "Unquoted literal" error - big BUG in LC?

Post by Dixie » Thu Mar 27, 2014 9:16 pm

With a 'script editor' open... go to the 'Edit' menu > 'Variable Checking' and set it so the check mark is not showing against it... I think that may solve your problem... Variable checking causes LiveCode to perform a stricter check of your scripts. Using any variable without declaring it first, or using a literal string without encloning it in quotes causes a compile error. This behavior can be useful in tracking down certain subtle problems such as misspelling a variable name. - from the 'User Guide'...

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: "Unquoted literal" error - big BUG in LC?

Post by dunbarx » Thu Mar 27, 2014 9:32 pm

Simon has a point. This is the same as checking "strict compilation mode" in the LC preferences, which can be done in browse mode if you wish.

There has been hubbub over time that somehow this property get set, and nobody knows how. Do check yours out, and if it has indeed been set, and you KNOW it wasn't you. write back

Craig Newman

croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

Re: "Unquoted literal" error - big BUG in LC?

Post by croivo » Thu Mar 27, 2014 9:35 pm

It works now fine as before. Thanks guys for quick reply!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: "Unquoted literal" error - big BUG in LC?

Post by dunbarx » Thu Mar 27, 2014 9:49 pm

Dixie had the point. Not Simon.

Glad it is working. But did you set that property? If not, are you sure?

Craig

croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

Re: "Unquoted literal" error - big BUG in LC?

Post by croivo » Thu Mar 27, 2014 10:50 pm

dunbarx wrote:Dixie had the point. Not Simon.

Glad it is working. But did you set that property? If not, are you sure?

Craig
I'm 99% sure I didn't click on that.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: "Unquoted literal" error - big BUG in LC?

Post by Dixie » Thu Mar 27, 2014 10:51 pm

LOL... it's that 1% that you have to be careful of :D

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

Re: "Unquoted literal" error - big BUG in LC?

Post by Simon » Thu Mar 27, 2014 10:54 pm

Isn't working with unquoted literal's just asking to kicked?

Simon
(who will take credit for Dixie's work any day)
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: "Unquoted literal" error - big BUG in LC?

Post by SparkOut » Fri Mar 28, 2014 9:15 am

Simon wrote:Isn't working with unquoted literal's just asking to kicked?

Simon
(who will take credit for Dixie's work any day)
Yes it is. You may be able to get away with it much of the time but there will surely be problems at some point or other. Then they will be hard to track down - frustrating, and as you found, easy to mistake for a bug.

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

Re: "Unquoted literal" error - big BUG in LC?

Post by Simon » Fri Mar 28, 2014 10:49 am

Hi SparkOut,
Not me... I'm not so cavalier. 8)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: "Unquoted literal" error - big BUG in LC?

Post by SparkOut » Fri Mar 28, 2014 8:38 pm

Yes sorry, I shouldn't switch addressee mid post!

Post Reply