Hrmm.. i'm not sure on that one. theres no mention it doing that in the sdk reference
manual. But its quite possible.. none the less i'd give it a shot.
later,
Philip Streck
Akron General Medical Center
Information Systems
>>> "Richard.Johnstone" <[EMAIL PROTECTED]> 04/13/01 12:39PM >>>
Doesn't DmRemoveRecord shift the records up though so all you need to do is
read/delete record 0??
-----Original Message-----
From: Phillip Streck [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 12:22 PM
To: Palm Developer Forum
Subject: RE: DmRemoveRecord : Not removing record
I think your calling DmRemoveRecord wrong, you should call it like this i
believe DmRemoveRecord ( PackedDB, index );
later,
Philip Streck
Akron General Medical Center
Information Systems
>>> "Richard.Johnstone" <[EMAIL PROTECTED]> 04/13/01 11:25AM >>>
Nope.
recH = DmQueryNextInCategory(PackedDB,&index, dmAllCategories);
if (recH == NULL) {
break;
} // if
recP = MemHandleLock(recH);
currRec = *recP;
NumberArrayRecs = currRec.NumberOfArrayRecs;
MemHandleUnlock(recH);
Error = DmRemoveRecord(PackedDB, 0);
if (Error != 0) {
DebugInt("error on deletion record",index);
}
-----Original Message-----
From: Phillip Streck [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 11:23 AM
To: Palm Developer Forum
Subject: Re: DmRemoveRecord : Not removing record
Is DmRemoveRecord returning an error code?
Philip Streck
Akron General Medical Center
Information Systems
>>> "Richard.Johnstone" <[EMAIL PROTECTED]> 04/13/01 11:16AM >>>
I am trying to copy a database into another database.
Due to space limitations on a 2MB handheld, I need to delete the original DB
records as I insert them into another database.
I am calling DmRemoveRecord and when I display the number of records in the
DB it is going down as if it was deleting them.
However I run out of memory and when I reset, it shows all the records still
in there.
I have even tried closing and openning the DB after evry 10 records to try
and force the removal of these records.
Does DMRemoveRecord just flag things for deletion?? It say in the manual it
diposes of the chunk.
Help Please!!
--
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/
--
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/
--
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/