>Subject: Recursive data structure using typedef struct or other
>From: "Lance" <[EMAIL PROTECTED]>
>Date: Sat, 2 Mar 2002 17:07:29 -0500
>
>I am a newbie at PalmOS and C so please bear with me...
>
>I am considering moving an application to the Palm world and need 
>to model a tree-like structure where individual nodes on the tree 
>contain several properties and a 'collection' of children nodes where 
>each child node is the same structure as the parent.  Theoretically, 
>the tree would support an infinite number of 'generations' of children
nodes.  >In the VB world I would use classes to model this behavior
        <SNIP>

The standard Palm OS "database" is really an indexed linked list and
is probably your best building block.  Make each "record" a node, 
and link the nodes together with either index number or unique ID.

Roger Stringer
Marietta Systems, Inc.


-- 
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