Android Question get highest value

tufanv

Expert
Licensed User
Longtime User
Hello,

I am adding a name and score to a list as arrays and sort them by score. But when i use
list.get(0) i get:

Code: Copy
(ArrayList) [[name=Tufan, IsInitialized=false, score=0

How can i only get the name from the list ?

TY
 
Last edited:
ok. In process globals I hav e :
Code: Copy
   Type person(name As String,score As Int)

than I have a list

Code: Copy
dim siralama as list
siralama.initialize

p.name=username
p.score=Round(olumlu/toplam*100)
siralama.add(p)

Than i sort the list

Code: Copy
siralama.SortType("score",False)

Bow i want to use siralama.get(0) . When i do it i get :
Code: Copy
(ArrayList) [[name=Tufan, IsInitialized=false, score=0

What i want to do is only get the name from the list not the score.
You need to post more code.
 
Upvote 0
Code: Copy
dim p as Person = siralama.get(0)
log(p.Name)
 
Upvote 0
Back
Top