arrays of arrays?

Katherine Sledge Moore mooreks at umich.edu
Wed Jan 17 19:28:13 UTC 2007


Is it possible in E-basic to make an array of arrays? 

So let's say you had the following: 
Dim array1(2) as Integer
Dim array2(2) as Integer
Dim array3(2) as Integer

Array1(0) = 0
Array1(1) = 1
Array1(2) = 2

Array2(0) = 3
Array2(1) = 4
Array2(2) = 5

Array3(0) = 6
Array3(1) = 7
Array3(2) = 8


Can you then say:

Dim allarray(2) as array

Allarray(0) = array1
Allarray(1) = array2
Allarray(2) = array3

If I wanted to get to the 0th item in the 2nd array could I then say:
 x = allarray(2(0))? Is there some other way of doing it?



More information about the Eprime mailing list