Sorry, the last loop needs index increment, otherwise it will never end:

Int16 index;
MemHandle mh;

index = 0;      // Just for more readability

while ((mh = DmQueryNextInCategory (dbP, &index, MyCategory)) != NULL)
{
                // Whatever

        index++;        // Important !
}

Michael

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

Reply via email to