Page 1 of 1

PostPosted: Wed Jan 31, 2001 12:57 am
by Velvis
I have an app that the user records data into on a regular basis. Using Ccontrols I have set up a small table which lists the values (one line of the table for each "session") As the user records these sessions the table lists them from oldest to newest (oldest being at the top). (ie record 0, is the first record, two weeks later record 1, two weeks after that record 2,....

I would like to list them the opposite way (ie the most recent session is at the top of the list).
Does anyone have any suggestions on how to do this?


PostPosted: Wed Jan 31, 2001 1:14 am
by Vilmos
There is a way to check how many records there are... aha! dbnrecs()

I'd just do a while loop to count down to 0

...display your records

That should print them out backwards. Untested though! I might be too tired to make coherent code. :)


Ack, see? I had to modify it already.

Edited by - Vilmos on 01/30/2001 19:17:43

PostPosted: Thu Feb 01, 2001 11:32 am
by Velvis
Thanks again, this worked perfectly....