Click to See Complete Forum and Search --> : array building short-cut


PaulJayKnight
January 23rd, 2009, 04:22 PM
is there a way to set multiple indexes on an array? for example need an array of numbers 9,8,5,8,4 is there a short-cut method to arrMyArray(1) = 9 and so forth?

Marraco
January 23rd, 2009, 04:31 PM
is there a way to set multiple indexes on an array? for example need an array of numbers 9,8,5,8,4 is there a short-cut method to arrMyArray(1) = 9 and so forth?
Dim MyArray() As Integer = New Integer() {9,8,5,8,4}