Have Used The DoLoop Without The ForNext?
Feb 16, 2009
My objective is to find the lowest test score in the array and display it in the associated label using a DoLoop. However, I don't think I was to use the ForNext stmt.Could I have used the DoLoop without the ForNext? ' displays the lowest test score stored in an array
Dim testScores() As Integer = {14, 82, 94, 77, 11, 95, 38, 62}
Dim lowest As Integer = testScores(0)
Do
[code]....
View 4 Replies
Jun 7, 2011
My objective is to find the lowest test score in the array and display it in the associated label using a DoLoop. However, I don't think I was to use the ForNext stmt.Could I have used the DoLoop without the ForNext? ' displays the lowest test score stored in an array
Dim testScores() As Integer = {14, 82, 94, 77, 11, 95, 38, 62}
Dim lowest As Integer = testScores(0)
Do
For subscript As Integer = 1 To testScores.Length - 1
[code]....
View 3 Replies