Re: DmNumRecords(DataBase)

2008-05-28 Thread Ben Darnell
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

Re: DmNumRecords

2006-08-07 Thread Sergey Leschenko
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

Re: DmNumRecords

2006-08-07 Thread Thomas Damme
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

RE: DmNumRecords

2006-08-07 Thread Jagat Nibas Mahapatra
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

DmNumRecords

2006-08-07 Thread Durgesh Trivedi
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

Re: DmNumRecords

2002-03-10 Thread Matt Disher (TiBook)
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

DmNumRecords

2002-03-10 Thread Edward P. Ross
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."

Re: DmNumRecords

2002-01-31 Thread Thomas Maeder
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

RE: DmNumRecords w/ DmDeleteRecord

2000-05-31 Thread McMicken, Steven
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

DmNumRecords w/ DmDeleteRecord

2000-05-31 Thread Sam Trimble
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

Re: DmNumRecords Error

2000-04-10 Thread David Kendall
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

Re: DmNumRecords Error

2000-04-08 Thread Matthew D Moss
> 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

Re: DmNumRecords Error

2000-04-08 Thread Michael Yam
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

RE: DmNumRecords Error

2000-04-08 Thread Mitch_Fawcett
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

DmNumRecords Error

2000-04-08 Thread Sam Trimble
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

Re: DmNumRecords(DataBase)

2000-03-30 Thread JB Parrett
>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 >

Re: DmNumRecords(DataBase)

2000-03-30 Thread Steve Sabram
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 >

Re: DmNumRecords(DataBase)

2000-03-30 Thread Ben Darnell
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

Re: DmNumRecords(DataBase)

2000-03-30 Thread David Fedor
>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

Re: DmNumRecords(DataBase)

2000-03-30 Thread Richard Burmeister
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

Re: DmNumRecords(DataBase)

2000-03-30 Thread JB Parrett
>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

DmNumRecords(DataBase)

2000-03-30 Thread Nuno Basto
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