Hello
I have problem with deleting last record from datbase
i just code below
plz help me
static Boolean DeleteRecord (void)
{
if (ConfirmDelete)
{
if (FrmAlert(MsgDeleteAlert) != MsgDeleteYes)
return (false);
}
thisRecord = CurrentRecord;
if (!SeekRecord(&thisRecord, 1, dmSeekForward))
if (!SeekRecord(&thisRecord, 1, dmSeekBackward))
thisRecord = noRecord;
DmDeleteRecord (M_DB, CurrentRecord);
DmMoveRecord (M_DB, CurrentRecord, DmNumRecords (M_DB));
if (thisRecord >= CurrentRecord &&
thisRecord != noRecord)
thisRecord--;
CurrentRecord = thisRecord;
return true;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/