I'm trying to create a generic hi-scores table for one of my game apps and also so that I can add it to the code samples for others to use
It's almost finished now but when I add a new score to the table and then sort the scores I find that the rows in the table are being separated instead of being kept together. Here's the section of code that adds the new score to the table and then attempts to sort it...
Can you spot what I'm doing wrong please
Thanks,
RandomCoder
It's almost finished now but when I add a new score to the table and then sort the scores I find that the rows in the table are being separated instead of being kept together. Here's the section of code that adds the new score to the table and then attempts to sort it...
B4X:
Sub UpdateTable(Score,Level)
ScoresTable.Cell("Score",9)=Score
ScoresTable.Cell("Level",9)=Level
ScoresTable.Cell("Date",9)=Date(Now)
ScoresTable.TableSort ("Score DESC, Level DESC")
ScoresForm.Show
End Sub
Can you spot what I'm doing wrong please
Thanks,
RandomCoder