looking for tips/suggestions

Discuss PocketC for Palm OS (including Desktop Edition)

Postby Velvis on Wed Jan 31, 2001 12:57 am

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?

Posts: 226
Joined: Mon Dec 11, 2000 2:32 am

Postby Vilmos on Wed Jan 31, 2001 1:14 am

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
Posts: 174
Joined: Tue Dec 05, 2000 6:13 pm
Location: Canada

Postby Velvis on Thu Feb 01, 2001 11:32 am

Thanks again, this worked perfectly....
Posts: 226
Joined: Mon Dec 11, 2000 2:32 am

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 4 guests