Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tree structures?
Message
De
17/12/1998 17:20:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00168160
Message ID:
00168717
Vues:
25
>Im wondering how one would implement a set of records that are sorted tree like, as oposed to linearly. ie create a family tree where each node can have a marrage link, more than one children link, and a parent link. Not a simple tree, either: there would actualy have to be more that one marrage link, and maried into the family people would only have one link.
>
>Any idea how one would do this, indeed, is it possible?

I have a menu.dbf - and it actually puts the whole menu system into a .dbf. The whole trick is to have one field which will contain a key of another record. You may create as many links as you like, play with regular keys and do whatever you want. I've actually called the same popup from several points within the same menu system, which means that its tree-like behavior is not mandatory - it can create any kind of tangled nets. Of course, the code for traversing this is a different matter - it may need recursion, emulation of a stack etc.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform