User Tools

Site Tools


en:arraybase

Differences

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

Link to this comparison view

Next revision
Previous revision
en:arraybase [2020/04/21 20:53]
admin created
en:arraybase [2020/04/21 21:00] (current)
admin
Line 9: Line 9:
 ==== Description ==== ==== Description ====
  
 +By default an integer from 0 to one less than the length of an array is used to index values within an array.  This behavior can be modified with the arraybase statement.  You may specify either a zero (for default indexing) or 1 for indexing starting at 1 and going to the length of the array.
  
  
 ==== Example ==== ==== Example ====
 +<code>
 +arraybase 1
 +ar = {44,55,66,77,88}
 +for i = 1 to ar[?]
 +    ? i, ar[i]
 +next i
 +</code>
 +
 +<code>
 +1            44
 +2            55
 +3            66
 +4            77
 +5            88
 +</code>
  
  
 ==== See Also ==== ==== See Also ====
-{{page>en:start#Mouse&noheader}}+{{page>en:start#Arrays and Variables&noheader}}
  
 ==== History ====  ==== History ==== 
 |2.0.0.0|New To Version| |2.0.0.0|New To Version|
en/arraybase.1587524030.txt.gz · Last modified: 2020/04/21 20:53 by admin