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!")
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
HighestScoreLabel.Text += CalulateWinnersArray.Sort()
the modelscore's is just a string collection with numbers like
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:
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??