Changes

Jump to: navigation, search

Visual Basic Arrays

366 bytes added, 15:23, 3 August 2007
Assigning Values to Individual Array Elements
<pre>
intNumbers(1) = 25
</pre>
 
A ''For'' loop can also be used to assign multiple values to an array.The following code excerpt loops through the elements of an array assigning the current value of the loop counter to the corresponding array element:
 
<pre>
Dim intNumbers(10) As Integer
 
For intCount = 0 To 10
intNumbers(intCount) = intCount
Next intCount
</pre>

Navigation menu