playMaker

Author Topic: Could use some Arraymaker advice  (Read 1345 times)

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Could use some Arraymaker advice
« on: February 04, 2014, 01:27:39 PM »
Hey there

I'm trying to make a simple Highscorelist and figure out how arraymaker works. I must say that I'm a little bit surprised that I can have only one Collum with several rows, I thougt an Array would be described as multi Collum field (like an Exel sheed)?

How ever - if I line um say ten Scores in an Array List I can perfectly sort them - but now I would love to add some Names acording to each Score like this

AAA 100.000
BBB 99.000
PPP 75.000

How can I connect the Names to the corresponding Scores while I sort the Array List? (Not a Code Guy so I got to figure this out with PM)

greets
Peter
« Last Edit: February 04, 2014, 01:48:54 PM by phannDOTde »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Could use some Arraymaker advice
« Reply #1 on: February 05, 2014, 04:14:08 AM »
Hi,

 Simply use a Hashtable instead of an arrayList.

 Hashtable will allow you to define a value based on a key ( string). so in your case, this is perfect.


bye,

 Jean