Ex:
Index is: 0 Value is: 50
Index is: 1 Value is: 49
Index is: 2 Value is: 48
etc.
Here is my code. Nothing seems to show up in the list box when I click the button.
Public Class Form2
Private Sub btnFill_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFill.Click
Dim intArray(49) As Integer
Dim i As Integer
For i = 49 To 0
intArray(i) = i - 1
lstResult.Items.Add("Index is:" & i & " Value is: " & intArray(i))
Next i
End Sub
End Class

New Topic/Question
Reply




MultiQuote







|