Page 1 of 1

Problem with mobile template in start centre

Posted: Mon Mar 27, 2017 3:04 pm
by jon@armasoft.co.uk
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.

Re: Problem with mobile template in start centre

Posted: Tue Mar 28, 2017 9:50 am
by LiveCode_Panos
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
--

Re: Problem with mobile template in start centre

Posted: Tue Mar 28, 2017 2:55 pm
by jon@armasoft.co.uk
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.

Re: Problem with mobile template in start centre

Posted: Thu Mar 30, 2017 10:17 am
by jon@armasoft.co.uk
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.