You really don't want to create tables with that many rows.  Not very zen of
Palm.

A table is a GUI thing-a-ma-jobbie.  As such, normally you only create as
many rows as you can display.  Then you load each table row with the data it
needs.

If, for example, you have a database with 1000 records which you wish to
display in tabular form, you might create a table with 11 rows and then
associate row 0 with record 0, row 1 with record 1, etc.  This association
is normally done by loading the associated record indices into the table,
often via TblSetRowID().  Then when you need to "scroll the table", what you
actually do is reset the index-row association -- i.e., associate row 0 with
record 11, row 1 with record 12, etc -- and redraw the table.  Any custom
draw routines would then need to be aware of the association (i.e., fetch
the record index via TblGetRowId()), or, if you are using specific table
item types which draw themselves, you would need to reload those cells with
appropriate data.

In other, more abstract, terms, the GUI object is kept small (like the
screen), and the (large) data object (the 1000 record database) is accessed
dynamically.

This is the methodology that the build in applications use.  Take a look at
MemoPad, which is the simplest of the built in applications, for an example
of this approach (particularly its List View).  Sources for MemoPad and all
the built-in application are included in the sdk which is free and available
on our web site:  http://www.palmos.com/dev/tech/tools/.

-bob mckenzie

-----Original Message-----
From: Richard Sloane [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 6:42 AM
To: Palm Developer Forum
Subject: What are the maximum rows in a table resource?


Hello all,

What are the maximum number of rows in a table resource?  I have a need to
create a table with up to 1000 rows.  Setting rows to 1000 with Constructor
result in both POSE and the Palm crashing when attempting to initialize the
form.  The PALM reference manual does not indicate that there is a maximum.
The application is on a Symbol Palm.  I download a database of carton
barcodes for verification.

Richard



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

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

Reply via email to