Associative Aray
Hi there,
I would like to congradulate you guys for this great script.
I do have a problem however. I use a associative array for my data like so:
myData["15"] = [value1,value2];
myData["16"] = [value3,value4];
Where 15 and 16 are ids from the database. My problem is this
alert(myData); gives:
,,,,,,,,,,,,,,value1,value2,value3,value4
And when I display the data like this:
playerList.setCellText(myData);
I get empty rows from 0 to 14. Then the 15th and 16th row are populated.
How can I solve this, by keeping the custom rows?
Thankx,
Cris
I would like to congradulate you guys for this great script.
I do have a problem however. I use a associative array for my data like so:
myData["15"] = [value1,value2];
myData["16"] = [value3,value4];
Where 15 and 16 are ids from the database. My problem is this
alert(myData); gives:
,,,,,,,,,,,,,,value1,value2,value3,value4
And when I display the data like this:
playerList.setCellText(myData);
I get empty rows from 0 to 14. Then the 15th and 16th row are populated.
How can I solve this, by keeping the custom rows?
Thankx,
Cris
Cris_co
January 29,