Page 1 of 1

Error in Lesson

Posted: Tue Jun 21, 2011 4:25 am
by dalkin
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.

Re: Error in Lesson

Posted: Tue Jun 21, 2011 12:25 pm
by Klaus
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