Problem with mobile template in start centre

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
jon@armasoft.co.uk
Posts: 20
Joined: Mon Apr 18, 2016 10:31 am

Problem with mobile template in start centre

Post by jon@armasoft.co.uk » Mon Mar 27, 2017 3:04 pm

I'm having a problem when I open the mobiletemplate.livecode file which is located in the start center directory under sample 3.

The script for card "template" includes the following code at line 3:

Code: Select all

set the theme of this stack to "green"
which is throwing an error message:
card "template": execution error at line 804 (Handler: can't find handler) near "revSEObjectDeleted", char 1
Any ideas how I can get this essential component of the 'Cloud and Database Academy' training to work? I'm running on Windows 10 Pro, Livecode Business 8.1.3

Thanks in advance.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 861
Joined: Fri Feb 06, 2015 4:03 pm

Re: Problem with mobile template in start centre

Post by LiveCode_Panos » Tue Mar 28, 2017 9:50 am

Hi Jon,

Starting from LC 8.0, the "theme" is a reserved property, with values either "native" or "legacy" (see dictionary for more details).

So the line [set the theme of this stack to "green"] now throws an error, since the "theme" property cannot be "green".

I guess you can just remove this line.

Best regards,
Panos
--

jon@armasoft.co.uk
Posts: 20
Joined: Mon Apr 18, 2016 10:31 am

Re: Problem with mobile template in start centre

Post by jon@armasoft.co.uk » Tue Mar 28, 2017 2:55 pm

Panos,

Thanks. That makes sense. I suppose the best option is to rename the custom properties to something other than 'theme'. That way one can keep the functionality without clashing with Livecode reserved words.

It would appear that the livecode academy lessons need a refresh to overcome this and possibly other clashes introduced with later versions of the base product.

jon@armasoft.co.uk
Posts: 20
Joined: Mon Apr 18, 2016 10:31 am

Re: Problem with mobile template in start centre

Post by jon@armasoft.co.uk » Thu Mar 30, 2017 10:17 am

Have modified the scripts to use 'colortheme' instead of 'theme' and all now appears to be behaving.

Zip file of the stack (no images etc.) attached for anybody who may want it.
Attachments
mobileTemplate.zip
(8.76 KiB) Downloaded 212 times

Post Reply