>--------------- MESSAGE metacard.v004.n246.10 --------------- > >From: digifilm <[EMAIL PROTECTED]> >Subject: tree >Date: Wed, 21 Mar 2001 18:07:45 -0800 >MIME-Version: 1.0 >Content-Type: text/plain; charset="us-ascii" ; format="flowed" >References: <[EMAIL PROTECTED]> >In-Reply-To: <[EMAIL PROTECTED]> > >Howdy, > >Is there a good example of a nice way to build a tree structure in >hyper/super/metacard. > >Thanks > >Debdoot > > >--------------- END metacard.v004.n246 --------------- B-tree with associative arrays. You just need to encode the first son and the first sibling with the address of the cells in the associative array. You can either use 2 arrays : one for the tree nodes and one for the links (two items by cell), or only one array, with line 1 for the links. Don't forget the counter for the cell names. H. Chaudet ----------------------------------------------------------------------------- Herve Chaudet e-mail : [EMAIL PROTECTED] mobile : 33-(0)-608-05-98-09 Unité UPRES EA 2672 Faculte de Medecine - 27, Bd Jean Moulin - 13385 Marseille cedex 5 - France Tel 33-(0)-491-79-19-10 ; Fax 33-(0)-491-79-40-13 Service de l'Information Medicale Hopital Nord - Chemin des Bourrelly - 13326 Marseille cedex 15 - France Tel 33-(0)-491-96-80-20 ----------------------------------------------------------------------------- w Archives: http://www.mail-archive.com/[email protected]/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.
