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: 
lkrocek
Binge Watcher

Undocumented words

does anyone have an idea whats are the reserved words below?


  • Let - no ide how to use and what it does

  • ObjFun - no ide how to use and what it does

  • Pos - found this but still not sure how to use ... (poor description and not working example)

  • Tab  - found this but don't understand why it's reserved the Lenis also a function and it's not reserved

  • Dim - found this[/url:55ctuvzp] but still not sure, how to use ...

  • Next - suppose command for debugging telnet console, but not sure

  • Step - suppose command for debugging telnet console, but not sure

Thanks for your replies!
Platforms integration specialist
====================
@ https://suite.st/
0 Kudos
5 REPLIES 5
squirreltown
Roku Guru

Re: Undocumented words

for i = 0 to 100 step 5
  blah blah
next

objfun is mentioned here, Search for it.
Kinetics Screensavers
0 Kudos
Komag
Roku Guru

Re: Undocumented words

half of those are just for messing around with the console, not really useful to me. I use Len() to get length of strings a lot, but I don't use any of the others (except Step in FOR loops, not Step in console debugger).
0 Kudos
NB_
Roku Guru

Re: Undocumented words

Most are there due to BASIC language progeny:
Let x = 1 - assignment, same as x = 1
Pos(), Tab() - positioning inside PRINT
Dim a[10] - pre-sizing an array (from DIMension), same as a = createObject("roArray", 10, true); both are almost never needed because of auto-sizing and {} literal notation; rare `dim multiDimensional[10][20]` has advantage of being short
Next - same as "end for", but shorter
Step - member of the "counting troupe": FOR i = 1 TO 10 STEP 2

i believe all are mentioned in TFM, curtly as it may be.
0 Kudos
renojim
Community Streaming Expert

Re: Undocumented words

For multidemensional arrays, it would be
Dim x[5,3]

as per the docs.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
lkrocek
Binge Watcher

Re: Undocumented words

Many thanks guys,

but prefer to write it down to the docs, I wrote some points to SDK documentation: links to fix, missing/broken/etc as well but it seems no more people handling the docs is checking this thread.
Platforms integration specialist
====================
@ https://suite.st/
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.