LoginLogin
Might make SBS readonly: thread

custom command GET()

Root / Submissions / [.]

DFrostCreated:

GET arguments

This custom command can allow you to get an element no matter its size, dimensions, or name. Here is the code(it's only 6 lines):
DEF GET(ARRAY,OFFSET)
DIM TEMP[3]
COPY TEMP,  0,  ARRAY, OFFSET,1
RETURN TEMP[0]
END
here is how to use it:
DIM ARRAY[20,20]
ARRAY[19,1] = 300
PRINT GET(ARRAY,40)'get 41'st index of ARRAY and PRINT it

300
OK

Array of length 20 and you store to element 20? Something is amiss.

Replying to:Minxrod
Array of length 20 and you store to element 20? Something is amiss.
oops! Ill edit