Your Digital Media Has Never Looked So Good

 
User avatar
lkrocek
Topic Author
Posts: 22
Joined: Wed Mar 28, 2018 4:04 am
Contact:

Undocumented words

Thu Sep 06, 2018 12:48 am

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 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/
 
User avatar
squirreltown
Posts: 870
Joined: Sun Apr 21, 2013 2:20 pm

Re: Undocumented words

Thu Sep 06, 2018 8:55 am

for i = 0 to 100 step 5
  blah blah
next

objfun is mentioned here, Search for it.
Kinetics Screensavers
 
User avatar
Komag
Posts: 808
Joined: Fri Aug 22, 2014 3:42 am

Re: Undocumented words

Thu Sep 06, 2018 9:10 am

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).
 
User avatar
RokuNB
Posts: 459
Joined: Fri Mar 31, 2017 2:22 pm

Re: Undocumented words

Thu Sep 06, 2018 10:26 am

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
** Valued Community Member **
Posts: 3490
Joined: Mon Feb 15, 2010 1:35 pm

Re: Undocumented words

Thu Sep 06, 2018 9:10 pm

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

as per the docs.

-JT
 
User avatar
lkrocek
Topic Author
Posts: 22
Joined: Wed Mar 28, 2018 4:04 am
Contact:

Re: Undocumented words

Tue Sep 11, 2018 10:49 pm

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/

Who is online

Users browsing this forum: No registered users and 5 guests