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: 
Blackhawk
Level 7

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
belltown
Level 7

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
Level 7

Re: Problem with one of my shows

How do I fix that?
0 Kudos