Forum Discussion

lkrocek's avatar
lkrocek
Binge Watcher
7 years ago

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!

5 Replies

  • for i = 0 to 100 step 5
      blah blah
    next

    objfun is mentioned here, Search for it.
  • 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).
  • 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.
  • renojim's avatar
    renojim
    Community Streaming Expert
    For multidemensional arrays, it would be
    Dim x[5,3]

    as per the docs.

    -JT