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: 
Blackhawk
Roku Guru

Problem with one of my shows

 There's an error on one of my channels shows menu
"error must turn a value (21)"

I think it involves the method below but I don't know what it is
Function CreateHomeworkHelperzMenu() as integer

screen = CreateObject("roGridScreen")

port = CreateObject("roMessagePort")

screen.SetMessagePort(port)



'prepare the screen for display and get ready to begin

screen=preShowPosterScreen("", "")

if screen=invalid then

print "unexpected error in preShowPosterScreen"

return

end if

'set to go, time to get started

showPosterScreen(screen)

End Function

0 Kudos
2 REPLIES 2
belltown
Roku Guru

Re: Problem with one of my shows

The function declaration has a return value, but you're not returning anything.
https://github.com/belltown/
0 Kudos
Blackhawk
Roku Guru

Re: Problem with one of my shows

How do I fix that?
0 Kudos