I recoded my table, and tried a new variation on what I was working on, but
I just received an error.
"Table.c, Line: 3074, Invalid parameter"
I believe it's happening in this code... but I can't be sure. Has anyone
else ran into this?
void SelectViewLoadRecords(FormPtr frm)
{
TablePtr table;
Word recordNum;
Word rowsInTable;
table = GetObjectPtr(SelectTripTableTable);
rowsInTable = SelectViewNumberOfRows(table);
// Is the current record before the first visible record?
if(tblInfoCurRecord != noRecordSelected)
{
if(tblInfoTopRecord > tblInfoCurRecord)
tblInfoTopRecord = tblInfoCurRecord;
// Is the current record after the last visible record?
else
{
recordNum = tblInfoTopRecord;
DmSeekRecordInCategory(gInfoDB, &recordNum, rowsInTable - 1,
dmSeekForward, dmAllCategories);
if(recordNum < tblInfoCurRecord)
tblInfoTopRecord = tblInfoCurRecord;
}
}
// Make sure we show a full display of records
if(TripsInCategory)
{
recordNum = dmMaxRecordIndex;
DmSeekRecordInCategory(gInfoDB, &recordNum, rowsInTable - 1,
dmSeekBackward, dmAllCategories);
tblInfoTopRecord = min(tblInfoTopRecord, recordNum);
}
else
tblInfoTopRecord = 0;
SelectViewLoadTable(frm);
// Set the callback routine that will draw the records
TblSetCustomDrawProcedure(table, 0, SelectViewDrawRecord);
TblSetColumnUsable(table, 0, true);
}
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/