ScriptBasic:UsersGuide 9.7

From ScriptBasic
Jump to: navigation, search


9. General Language Format

9.7. Arrays

[<<<] [>>>]

9.7.1. Creating arrays
9.7.2. Array index limits
9.7.3. Deleting an array

Arrays are memory locations that store many values at the same time. While normal variables store a single value at a time, an array variable can store many values. The values are accessed via the name of the variable and the appropriate indices. The index or indices follow the name of the variable between [ and ]. This is the usual notation for most programming languages, like C, Perl, PASCAL, Python. Some BASIC implementations use ( and ) instead, but that confuses array access and function call.In the following subsections we describe how to use arrays.