Is there an easy way to check your code for incorrect use of Lua commands?
I'm having trouble running a Script where I am trying out some Lua stuff (similar to the csv import) and the Script just won't run at all. I have used sky.lprint in the onKeyDown function and it's not even getting that far (there's no other functions except my own and onKeyDown, which calls my function):
- Code: Select all
function onKeyDown ( sKey )
if ( sKey == "p" ) then
sky.lprint ( "P key pressed")
myFunc ( )
end
end
function myFunc ( )
sky.lprint ( "in myFunc")
.....
coding error
somewhere here
.....
end
I believe that there is a scripting error in myFunc ( ) that is stopping Skyline from running onKeyDown ( )??
I have tried using Lua's error trapping, but that doesn't seem to work either?
Look forward to your comments.
Regards
Shando