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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Calling a particular function

Can anyone help..

Am trying to enable a GRID function in the default videoplayer example that comes with the do I do it and where do I need to put the codes..

Total Caribbean Network
0 Kudos
Streaming Star

Re: Calling a particular function

I'm not sure what you mean by 'grid function'. If you are trying to add a gridscreen, look at the gridscreen sample app, and copy the routines you need into your current app.
As far as 'calling a function' goes, it is called the same way you would call any other function -


Function Grid(Variableone) As Integer
'Do stuff
Return 0
End Function

As long as the function name isn't used somewhere else in your script files, and it isn't a reserved keyword, it will be called as a function as you intend. The return value is optional, but recommended for debugging and documenting program flow.
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.