The circa PalmOS 3.5 version of the PalmOS Reference that I use states, in
regard to
TblGetNumberOfRows(),  that "The value returned by this function indicates
the maximum number of rows that can be displayed on the screen at one time.
It is set when you create the table resource."  So the return value as you
describe it is consistent with the documentation that I quote here.

I have not had a problem with needing to make an API call to determine how
many rows are visible.  When I display data in a table, it is from rows of
an array; I keep track of the first row (array index) displayed and the
total number of rows in the array.  This is in my app, and can of course be
dynamic.
If I have fewer data rows than there are rows in the Table resource, I mark
the rest of the rows as unusable.  Whenever the number of data rows changes,
I traverse this same logic in a loop, the same loop that sets the
association between the array rows and the table rows (I call
TblSetRowData() with the address of the appropriate array row).

Likewise, I have never used TblGetLastUsableRow() .

----------------------------------------------------------------------------
------
>The SDK says that TbleGetNumberOfRows should only return the number of rows
>visible, why is this number ALWAYS returning the number of rows specific in
>the constructor?

>btw:  TblGetLastUsable also returns this number.




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

Reply via email to