I asked the same question a while ago. Got a couple of replies. This is what
we formulated from the replies. This is pseudo code only, but this is what
we do to get the DB size in Palm.
#define DB_HEADER_OVERHEAD 64
//this one is said to be 16 or 14 byte, but actually checking the
//change in record size in Palm Vx, we found 20 to be most accurate
#define RECORD_OVERHEAD 20
Long lDBSize = DB_HEADER_OVERHEAD;
for(i=0; i< nNoOfRecords; i++)
{
Long lRecordSize = GetRecordSize(i);
//align it to 4 byte boundary
if (lRecordSize % 4)
lRecordSize = lRecordSize + (4 - (lRecordSize % 4)) +
RECORD_OVERHEAD;
lDBSize += lRecordSize;
}
-Sugho-
>From: "Nicholas Breau" <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: Database size in a PALM
>Date: Fri, 7 Apr 2000 14:36:41 -0300
>
>Is their a way to easily determine the amount of RAM available in a PALM ?
>I have a database with 120,000 records and I was wondering how I could find
>out if they could fit on a PALM. I know it depends on the size of each
>record, but was wondering if anybody could let me know how I could
>determine
>a rough estimate.
>
>thanks for your help.
>Nick.
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palm.com/devzone/mailinglists.html
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html