Changes

Jump to: navigation, search

Visual Basic Arrays

6 bytes added, 19:30, 3 August 2007
How to Declare a Visual Basic Array
An array is declared using the ''Dim'' keyword. The syntax is as follows:
'''Dim''' ''arrayname(size)'' ''' As ''' ''dataType''
The ''arrayname'' is the name by which the arrray will referenced in code. The ''size'' value in parentheses defines the maximum size of the array. It is important to note that arrays elements are numbered starting from 0, so an array of size 10 actually holds 11 elements (indexed as 0 though to 10).

Navigation menu