> When you set up the list item, you need to tell
> PalmOS how many entries the list is supposed to
have,
> and that determines how often and with what values
> MainFormListDrawItem() gets called.
This statement should have told the list to draw 132
time, right? because numRecords=132.
if (numRecords) {
/* get a pointer to the list object */
lst = FrmGetObjectPtr(frm,
FrmGetObjectIndex(frm,MainLstFireList));
/* set the number of list choices */
LstSetListChoices(lst, NULL, numRecords);
/* set the callback function to draw the list */
LstSetDrawFunction(lst, MainFormListDrawItem);
}
> Are you only getting one entry in the list
> displayed, or the same entry DmNumRecords(gF) times?
> If the latter, are you sure the database doesn't
> contain the same record multiple times?
I can only see one in the list display. The database
is from Access and I know there are 132 different
entries. Also, when I in debug mode, I saw that the
itemNum in "MainFormListDrawItem" stays as 0 -- never changes.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/