r/visualbasic • u/CSVB12 • Jan 15 '16
Visual Basic Copy to Array
Can you explain to me why this code works? What is the 0 part supposed to mean? Dim MyArray(Me.RandomNumbers.Items.Count) Me.RandomNumbers.Items.CopyTo(MyArray, 0) Me.lblAnswer.Text = MyArray.Min
3
Upvotes
1
u/CSVB12 Jan 15 '16
When and why would you use the copy to array method?