Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

organizing contents of a table

Name: Anonymous 2011-04-02 17:36

I am having a hard time learning how to do something that I imagine should be simple.  So I am just going to bite the bullet and ask for help.

I want to make a table where I can organize the data via clicking on a title to organize the data within.

The data for inside the table would be defined in an outside document.

For instance

[Name] [Age] [Start Date] [End Date] [Months Participating]
   A     Aa       Ab          Ac              Ad

then I'm assuming it would call to an array to get the data.

Where each listing would have something like:

a[0]: John, 24, 10-09, 09-11

And then have the last part calculated by some eqation which I don't want to come up with right this second so let's just have it be "Ac+Ad=Ae"

So if you click name, it'll sort alphabetically through the array.  if you click age, either offering ascending, descending, or preferably both, and same deal with the dates sort ascending and descending.  Or the months, ascending descending.

Anyone have any idea of a good link to teach me this, or an example with maybe 2 parts that I can rip apart and elaborate upon?

Thanks!

Name: Anonymous 2011-04-02 17:40

basically a spread sheet is what I'm getting at.

Name: Anonymous 2011-04-02 17:40

NO EXCEPTIONS

Name: Anonymous 2011-04-02 18:08

Why don't you just download something open source and take cribs notes from the source code?

I mean, geez, it's a spreadsheet, not the traveling salesman.

Name: Anonymous 2011-04-02 19:05

make a struct with [Name] [Age] [Start Date] [End Date] [Months Participating]

make 5 different comparables for each of the categories, then do a qsort on them depending on the what you click.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List