Error in Lesson

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dalkin
Posts: 183
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Error in Lesson

Post by dalkin » Tue Jun 21, 2011 4:25 am

The lesson available at http://lessons.runrev.com/spaces/lesson ... een-in-iOS

seems to be throwing an error:

"card id 1002: execution error at line 3 (Function: error in function handler) near "iphoneControls", char 42"

Can anyone duplicate it? I downloaded the lesson files and ran it in the simulator which seems to work but the error still appears in an error message window in LiveCode.
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

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

Re: Error in Lesson

Post by Klaus » Tue Jun 21, 2011 12:25 pm

Hi dalkin,

unfortunately the desktop engine does not recognize all the mobiel handlers/functions and throws an error! :(
So you need to use "if then":
...
if the environment = "mobile" then
## do your iPhone stuff
end if
...


Best

Klaus

Post Reply