Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27360

I have another question about sorting numbers in a listview

$
0
0
I am trying to sort numbers in my listview from smallest to largest using array.sort but it is not working.

Here is what I have, Thanks

For i = 0 To lvwScores.Items.Count - 1
Dim currentVal As Double = lvwScores.Items(i).SubItems(6).Text
Dim index(0) As Double

index(0) = currentVal
Array.Sort(index)
ListBox1.Items.Add(currentVal)

Next

Viewing all articles
Browse latest Browse all 27360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>