Results 1 to 6 of 6

Thread: Persistance Is Futile

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Cool

    Around about you'll find another post from me about TreeViews (TreeView Nodes - Can they be externally instanciated?). I'm almost certain that the problem described therein cannot be solved. Hence I'm using
    a different approach....I'm going to use an invisible treeview object as a node store and write functions to check for the existance of a node and to transfer whole nodes to my visible tree.

    What I'm asking is, what is the quickest way to traverse a complete node...? Is next / previous quicker than looping through indexes? Would it be better to use 'for each child'?


    Anyone out there got any TreeView experience?

    Anyone heard of TreeView?



    Dan

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Arrow

    I think nobody in the world is using TreeView except me...

  3. #3
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    I think we have all heard of TreeView, and i am indeed using one in my project. It is being used as a navigation bar, as i have 40 odd forms. So i have never had to traverse all of the nodes.
    Iain, thats with an i by the way!

  4. #4
    Guest
    I don't really know the answer to your question, but rest assured I use TreeView also

    Anyway, there are lots of AI theories on how to search a tree and the moral of the story is that it depends on the composition of the tree. Generally speaking, you recursively call a function which executes a "search my children" routine. Recursion, however, is a lost art practiced only be AI programmers

    Also, I would think you could externally instanciate a node, but I never saw your first post. Email me more info.

    [email protected]


  5. #5
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I use recursion all the time, It's not AI though.

    See the AI discussions in the chit chat forum.

  6. #6
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    Originally posted by Judd
    What I'm asking is, what is the quickest way to traverse a complete node...? Is next / previous quicker than looping through indexes? Would it be better to use 'for each child'?
    Can you post the code necesary to loop through all the child
    nodes (like using for each or for i = 1 to nodes.children)??
    please? ^_^
    Last edited by macai; Aug 8th, 2002 at 08:46 PM.
    Luke

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width