Variable arrays
Tutorial 10
§
Variable
arrays
o Group of variables that have the
same name and the same datatype and are related in some way
o Unique number called an INDEX is used to indicate which member(element) of the array you which to
access
§
Refer
to an element by name of array and its subscript
·
Dim
students(10) as string
·
Dim
intNum as integer
·
Student(1)
·
IntNum
= 8
·
Student
(intNum)
§
Dim
{arrayname}( lower subscript to upper script) as {datatype}
§
If no
lower limit given, default is Zero
o
Two
dimensional arrays
§
Dim
{arrayname}( lower subscript to upper script, lower subscript to upper script)
as {datatype}
§