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: 
TCNHD
Visitor

Calling a particular function

Can anyone help..

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

THanks...
Total Caribbean Network
www.tcnhd.com
0 Kudos
1 REPLY 1
destruk
Binge Watcher

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 -

returnvalue=grid(variables)

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