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:

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

How can i only get the name from the list ?

TY
 
Last edited:

tufanv

Expert
Licensed User
Longtime User
ok. In process globals I hav e :
B4X:
   Type person(name As String,score As Int)

than I have a list

B4X:
dim siralama as list
siralama.initialize

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

Than i sort the list

B4X:
siralama.SortType("score",False)

Bow i want to use siralama.get(0) . When i do it i get :
B4X:
(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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…