Damien, I believe your problem is that the table entries are all refering to your static variable for drawing purposes. You should set up individual character memory for each table entry, and refer to the appropriate memory for each table entry.
Al ----- Original Message ----- From: "Damien Carbery" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 7:17 AM Subject: Need help using TblGetItemPtr - getting wrong data > I have a static char variable which I StrCopy data into from a db record. I > then pass this to TblSetItemPtr. > In my table callback (which only seems to get called after all my table > populating is complete) I use TblGetItemPtr to retrieve the data for > reformatting and drawing on the cell. > > Unfortunately the data retrieved is equal to the last data send (with > TblSetItemPtr) so each cell (appears to have)/has the same data. > > What could I be doing wrong? > There are close to no examples of customTableItem types and > TblSet/GetItemPtr > on the web that I've been able to find. The best thing I've found is "Don't > use tables unless you absolutely have to". > > My original post includes a small bit of code: > http://groups.yahoo.com/group/palm-dev-forum/message/89520 > > Any help would be appreciated to get beyond this blocker for me. > [I'm writing a bus timetable app, inspired by TrainSched]. > > Damien. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
