> > Table Equivilant:
> > ===============================================================
> >
> >   for (i = 0; i < numRecs; i++) {
> >      recH = DmQueryRecord(gDB, i);
> >       if (recH) {
> >
> >    TblSetItemStyle (tblS, i, C_SITE, textTableItem);
> >    TblSetLoadDataProcedure(tblS, C_SITE, loadDataCallback);
> >    TblSetSaveDataProcedure(tblS, C_SITE, SaveDataCallback);
> >     recP = (ParkITDBPtr)MemHandleLock(recH);
> >
> >    TblSetItemStyle (tblS, i, C_CLNT, labelTableItem);
> >    TblSetItemPtr   (tblS, i, C_CLNT, recP->Client);
> >
> >    TblSetItemStyle (tblS, i, C_REGO, labelTableItem);
> >    TblSetItemPtr   (tblS, i, C_REGO, recP->Rego);
> >
> >       TblSetRowUsable (tblS, i, true);
> >       MemHandleUnlock (recH);
> >
> >      }
> >    }
> >
> >  TblDrawTable(tblS);

Yep, we're seeing it. Guess we were all waiting for someone else to answer it.

I haven't done too much with tables, so take what I say with a pinch of salt...

First thing. You assign pointers to columns C_CLNT, and C_REGO, but you 
then unlock the handle of the structure that contains the pointers. I'm 
guessing you know what you are doing here, and that the pointers remain 
valid despite the handle lock state. (I believe that the table doesn't 
actually use these pointers, however, your custom routines can.)

Second. Check that numRecs is what you want to use. Tables can have more 
rows than are displayed. I don't know if you used TblGetNumberOfRows.

Third. Figure out where and what the handle errors are. You may have 
everything set up OK, but are just not doing the right thing in your callbacks.

Matt


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to