Results 1 to 3 of 3

Thread: Sorting Text File for Highscores

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    3

    Exclamation Sorting Text File for Highscores

    Hi there, I recently created a program and want to add a highscore table to it.
    I have 'Name', 'Score', 'Date' saving to text file (using append) and can then display this list in a label, however I want to sort the list to display the top 10 scores in the label.
    Any help appreciated

  2. #2

  3. #3
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Sorting Text File for Highscores

    Quote Originally Posted by CompSci_Joe View Post
    Hi there, I recently created a program and want to add a highscore table to it.
    I have 'Name', 'Score', 'Date' saving to text file (using append) and can then display this list in a label, however I want to sort the list to display the top 10 scores in the label.
    Any help appreciated
    Isolate the scores when the file is read and as they are encountered, add the score strings to a list box with the sorted property set to True.

    After the list box is built, remove any score after the 10th.
    Doctor Ed

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width