In article <[EMAIL PROTECTED]>, Richard Burmeister wrote:
>There is a problem with using DmNumRecordsInCategory: it can be slow. Does
>anyone know of a method that is as fast as DmNumRecords but counts only
>non-deleted records?
DmNumRecords is fast because the total number of re
On Mon, 07 Aug 2006 08:11, Durgesh Trivedi wrote:
> when i try to count the records frm todo database using the function
> DmNumRecords it give the count for those records also which are deleted frm
> the data base.
>
> for example
> we have 5 records in the data base its
Durgesh Trivedi schrieb:
when i try to count the records frm todo database using the function
DmNumRecords it give the count for those records also which are deleted frm
the data base.
for example
we have 5 records in the data base its show still 5 after we delete the 2 records
But it
bject: DmNumRecords
when i try to count the records frm todo database using the function
DmNumRecords it give the count for those records also which are deleted frm
the data base.
for example
we have 5 records in the data base its show still 5 after we delete the 2
records
But it should show 3 re
when i try to count the records frm todo database using the function
DmNumRecords it give the count for those records also which are deleted frm
the data base.
for example
we have 5 records in the data base its show still 5 after we delete the 2
records
But it should show 3 records.
and
ECTED]
> From: "Edward P. Ross" <[EMAIL PROTECTED]>
> Organization: Acrocat Software
> Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Date: Sun, 10 Mar 2002 18:12:43 -0800
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> S
I have the following code below... that fails on the numRecs =
DmNumRecords(gSRWorkDB); line
I have verified that the database is open/created (thanks to you guys). The error on
the line that I get is "Application just
read from memory location 0x0006, which is in low memory."
Please always start one thread per question. Thanks!
Low Pui Kuen wrote:
>
> When I print out the DmNumRecords, it shows 4295, what does this number
> signified?
My docs say that this function returns "the number of records in a
database."
> Is it something wrong with m
Look at this thread:
http://www.egroups.com/message/palm-dev-forum/27282?&start=26334
Regards,
Steve
-Original Message-
From: Sam Trimble [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 31, 2000 11:31 AM
To: Palm Developer Forum
Subject: DmNumRecords w/ DmDeleteRecord
Hey,
I
Hey,
I'm using DmNumRecords to get the number of all the records in my database.
But when I delete one w/ DmDeleteRecord it still gets counted. I was
wondering if there is a way of getting the correct number of records while
still using DmDeleteRecord.
TIA,
Sam
--
For information on
I'm pretty sure that DmDelete record does not move the record to the end of
the database. You have to do that yourself with:
DmMoveRecord(pOpenRef, pIndex, DmNumRecords(pOpenRef));
Once you've done that, you can get the count of non-deleted records with:
UInt GetRecordCount
> DmDeleteRecord marks a record as deleted, but does not actually remove it.
> This gives hotsync a chance to coordinate the deleted records with the
> records on the Palm handheld. Use DmRemoveRecord to really remove the
> record and your DmNumRecords will then report the number you
DmDeleteRecord marks a record as deleted, but does not actually remove it.
This gives hotsync a chance to coordinate the deleted records with the
records on the Palm handheld. Use DmRemoveRecord to really remove the
record and your DmNumRecords will then report the number you expect.
--
Michael
DmRemoveRecord will remove the record from the database and free the chunk
of memory it took up. DmNumRecords will not count the record because it
won't be there anymore.
If you use DmDeleteRecord only the 'delete' bit in the record gets set. It
then gets moved to the end of the
Hey, I need to find out how many records there are in a database. Using the
DmNumRecords function works pretty good until I delete a record. Then the
next time it gets called it still returns the same numbers of records it did
before the delete. Is there any way I can get around this or any other
>From: "JB Parrett" <[EMAIL PROTECTED]>
>> >If I delete a record DmNumRecords() counts it anyway.
>> >How can I count only the records that are not deleted?
>>
>> Use DmNumRecordsInCategory(gDB, dmAllCategories); This skips the
>
Burmeister wrote:
> From: "JB Parrett" <[EMAIL PROTECTED]>
> > >If I delete a record DmNumRecords() counts it anyway.
> > >How can I count only the records that are not deleted?
> >
> > Use DmNumRecordsInCategory(gDB, dmAllCategories); This skips the
>
In article <6631@palm-dev-forum>, Richard Burmeister wrote:
>There is a problem with using DmNumRecordsInCategory: it can be slow. Does
>anyone know of a method that is as fast as DmNumRecords but counts only
>non-deleted records?
DmNumRecords is fast because the total numbe
>There is a problem with using DmNumRecordsInCategory: it can be slow. Does
>anyone know of a method that is as fast as DmNumRecords but counts only
>non-deleted records?
There isn't one. DmNumRecords just looks up a number in the database
header, so it is immediate. The
From: "JB Parrett" <[EMAIL PROTECTED]>
> >If I delete a record DmNumRecords() counts it anyway.
> >How can I count only the records that are not deleted?
>
> Use DmNumRecordsInCategory(gDB, dmAllCategories); This skips the
> deleted records.
There is a prob
>If I delete a record DmNumRecords() counts it anyway.
>How can I count only the records that are not deleted?
Use DmNumRecordsInCategory(gDB, dmAllCategories); This skips the
deleted records. You might want to check the dmAllCategories constant
- I'm not awake yet.
JB
--
For
If I delete a record DmNumRecords() counts it anyway.
How can I count only the records that are not deleted?
Thanks.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html
22 matches
Mail list logo