Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xoceunder
Roku Guru

error functions in Visible

I have this error
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.

Suspending threads...
Thread selected:  1*   pkg:/components/EpgGrid.brs(75)         m.player.Visible=                                                                             FALSE

Current Function:
067:  function onKeyEvent(key as String, press as Boolean) as Boolean
068:      result = false
069:
070:      if(press)
071:        print key
072:        if key = "OK"
073:            m.player.Visible=TRUE
074:          else if(key = "options")
075:*             m.player.Visible=FALSE
076:          end if
077:      end if
078:
079:      return result
Invalid value for left-side of expression. (runtime error &he4) in pkg:/componen                                                                             ts/EpgGrid.brs(75)
075:             m.player.Visible=FALSE
Backtrace:
#0  Function onkeyevent(key As String, press As Boolean) As Boolean
   file/line: pkg:/components/EpgGrid.brs(79)
Local Variables:
key              String (VT_STR_CONST) val:"options"
press            Boolean val:true
global           Interface:ifGlobal
m                roAssociativeArray refcnt=2 count:7
result           Boolean val:false
Threads:
ID    Location                                Source Code
 0    pkg:/source/main.brs(17)                msg = wait(0, m.port)
 1*   pkg:/components/EpgGrid.brs(75)         m.player.Visible=FALSE
  *selected

0 Kudos
2 REPLIES 2

Re: error functions in Visible

Any luck solving this? I'm having similar issues.

0 Kudos
necrotek
Roku Guru

Re: error functions in Visible

Invalid value for left-side of expression. (runtime error &he4) in pkg:/componen                                                                             ts/EpgGrid.brs(75)
075:             m.player.Visible=FALSE

"m.player" is not in the scope of this function or is not a valid node with property "visible".

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.