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

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

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

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
Roku Employee
Roku Employee

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

Re: Undocumented words

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

as per the docs.

-JT
0 Kudos
lkrocek
Level 7

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