# BASIC 256 - Language Documentation

en:arrays

## Arrays

Arrays are allocated using the DIM command or re-sized using 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.

### Example

    print myarray[4]

will display on the screen the fifth element in 'myarray'

en/arrays.txt · Last modified: 2013/03/23 10:33 by admin