User Tools

Site Tools


en:arrays

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:arrays [2016/08/08 17:57]
admin
en:arrays [2016/09/08 19:32]
admin
Line 1: Line 1:
 ===== Arrays ===== ===== Arrays =====
 Arrays are allocated using the [[DIM|DIM]] command or re-sized using [[REDIM|REDIM]].  They may hold numeric or string data.  Access to specific elements in an array is accomplished by using square brackets along with the integer offset of the element, starting from zero.  Arrays may also be dimensioned and accessed using two dimensions.\\ Arrays are allocated using the [[DIM|DIM]] command or re-sized using [[REDIM|REDIM]].  They may hold numeric or string data.  Access to specific elements in an array is accomplished by using square brackets along with the integer offset of the element, starting from zero.  Arrays may also be dimensioned and accessed using two dimensions.\\
-Array sizes may also be extracted using [?] [?,] and [,?] on the end of the array variable.+[[arraylength|Array lengths]] may also be extracted using [?] [?,] and [,?] on the end of the array variable.
  
 ==== Assigning values to an array ==== ==== Assigning values to an array ====
Line 10: Line 10:
 <code> <code>
 dim a(10) dim a(10)
-for t = 0 to 9+for t = 0 to a[?]-1
     a[t] = t     a[t] = t
 next t next t
en/arrays.txt ยท Last modified: 2020/04/21 18:29 by admin