Массивы


Use arrays to store multiple values in one variable.

Example of one-dimensional array (list):

Dim Year(11)

Year(0) = “January”

Year(1) =”February”

…        

Year(11)=”December”

Dim Month

Month = Year(5)

Example of a multidimensional array:

Dim MonthDays(11,1)

MonthDays(0, 0) = "January"

MonthDays(0, 1) = 31

MonthDays(1, 0) = "February"

MonthDays(1, 1) = 28

Example of a dynamic array (allows resizing):

ReDim A(5)

Erase A