From: "Nospam_Thani" <[EMAIL PROTECTED]>

> Follow the linked list approach.
>
> Add two more members in the structure, prev_id and next_id and store the
> record_id and create a linked list.

This would be a good approach if you need to sort by two different criteria.
As it is, Palm OS has built-in support for one sort and that's all that's
needed here. Just sort the OrderItems db by order number + line number. When
you need to get an order's items, use DmFindSortPosition to find the first
order item's index, then increment from there.


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

Reply via email to