Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
xoceunder
Level 7

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