> storing the LocalID seems to be the fastest solution, but is
> probably a big NoNo on NVFS devices as localID is not guaranteed
> to remain the same.

Drat, I didn't know that; thanks for the information.

Funny thing is, I've seen an application that does what I want. OK, I spent the 
last few hours disassembling it and it seems to do something like this:

UInt16 cardNo;
LocalID dbID;
Err err;
DmSearchStateType stateInfo, oldState;

err = DmGetNextDatabaseByTypeCreator (true, &stateInfo, 0, 0, false, &cardNo, 
&dbID);
while (err == errNone)
{
    if (ShouldDelete (cardNo, dbID))
    {
        DmDeleteDatabase (cardNo, dbID);
        stateInfo = oldState;
    }
    oldState = stateInfo;
    err = DmGetNextDatabaseByTypeCreator (false, &stateInfo, 0, 0, false, 
&cardNo, &dbID);
}

Any ideas why this should or shouldn't work? (Strangely enough, it apparently 
does work - but maybe it fails in some bizarre circumstances...)

Regards,
Vesselin
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to