This is my code
Dim CalulateWinnersArray(My.Settings.ModelScores.Count) As Integer
If My.Settings.ModelScores.Count = 0 Then
MessageBox.Show("No Models In The System!")
Else
Dim addtomodelcount = 0
While addtomodelcount < My.Settings.ModelScores.Count
Dim thesplit As String() = Split(My.Settings.ModelScores(addtomodelcount), ",")
CalulateWinnersArray(addtomodelcount) = thesplit(1)
addtomodelcount = addtomodelcount + 1
End While
HighestScoreLabel.Text += CalulateWinnersArray.Sort()
End If
the modelscore's is just a string collection with numbers like
Name
1
23
45
4
and im adding all the 0 indexes into the CalulateWinnersArray array and im have to do a bubble sort for a school assiment, I know what the ubbble sort looks like in psumocode, but i don't know how to put it into this code, I want HighestScoreLabel.Text to = the hiest score in the array.
so for example the CalulateWinnersArray should look like a whole bunch of random numbers, adding into the array kinda like this:
2
48
76
4
2
6
and they will be sorted in order, so the highest score will be at index 0, then HighestScoreLabel.Text will = 0 in the array which will be 76 because it is the highest.
Can anyone please help me with this??