Results 1 to 24 of 24

Thread: [RESOLVED] How To Create A Leaderboard?

Threaded View

  1. #14
    PowerPoster Spoo's Avatar
    Join Date
    Nov 2008
    Location
    Right Coast
    Posts
    2,656

    Re: How To Create A Leaderboard?

    JonSea

    Fair enough.
    Yes, you are on to it.

    Perhaps you can try something like this:

    Code:
    For ii = 1 to 10
        lblName(ii - 1) = aaTop10(ii, 1)
        lblAmount(ii - 1)= aaTop10(ii, 2)
        lblDate(ii - 1)= aaTop10(ii, 3) 
    Next ii
    I am assuming that you populated aaTop10
    as I coded it earlier, and that Label control
    arrays go from 0 to 9, hence the use of (ii - 1).

    Change code as needed if I assumed incorrectly.
    Plus, some formatting may be needed.

    EDIT
    Ha ! Don't feel so bad. It's kinda new to me too.
    I just had to check it out myownself

    Either of these accomplish the same thing:
    • lblName(ii - 1) = aaTop10(ii, 1)
    • lblName(ii - 1).Caption = aaTop10(ii, 1)



    Spoo
    Last edited by Spoo; Jun 14th, 2010 at 08:33 AM.

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