this code help

this code error

		         else if msg.GetIndex() = 2 then
		    	     screen.Close()
                     return msg.isRemoteKeyPressed("keyBACK")
                 endif

Do you have a final “endif” in place? The “endif” I see is only for the “if” I can see.

“hugetv” wrote:
this code error

		         else if msg.GetIndex() = 2 then
		    	     screen.Close()
                     return msg.isRemoteKeyPressed("keyBACK")
                 endif

msg.isRemoteKeyPressed() doesn’t take any parameters.

http://sdkdocs.roku.com/display/sdkdoc/Event+Loops

I’m trying to implement safety pin to enter a category