I, I want to do a program similar to "dance your fat off", so I can input player names and weights and the system will sort it out for me.. the problem is, I seem unable to link the name to the weight (the weight gets sorted, but not the names).
example: I have
tom = 100
david = 20
alfred = 75
and I want the result to show
tom 100
alfred 75
david 20
_________________________________
Dim A() as double = {p(1),p(2),p(3),p(4),p(5),p(6)}
Array.Sort(A)
r(1).text = A(A.Length - 1)
r(2).text = A(A.Length - 2)
r(3).text = A(A.Length - 3)
r(4).text = A(A.Length - 4)
r(5).text = A(A.Length - 5)
r(6).text = A(A.Length - 6)
__________________________
I can do that to sort the numbers, but cant seem to find a proper way to link the names to the values of the weights.