Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
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")


'prepare the screen for display and get ready to begin

screen=preShowPosterScreen("", "")

if screen=invalid then

print "unexpected error in preShowPosterScreen"


end if

'set to go, time to get started


End Function

0 Kudos
2 Replies
Level 8

Re: Problem with one of my shows

The function declaration has a return value, but you're not returning anything.
0 Kudos
Level 7

Re: Problem with one of my shows

How do I fix that?
0 Kudos