< Previous lesson | Table of Content | Content of this Chapter | Next lesson >

Assign Value to Array

Syntax: ArrayName(index) = value

Example:

Dim I As Integer, J As Integer
Dim MatrixA(1 To 10, 1 To 10) As Double
For I = 1 To 10
For J = 1 To 10
MatrixA(I, J) = I * 10 + J
Next J
Next I

< Previous lesson | Table of Content | Content of this Chapter | Next lesson >