SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Aug 2001
    Location
    california
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    going up the list of a treeview

    here's the scenario. i have a treeview
    a
    |_b
    |_c

    now, i want to perform a function from c to a. how do i go through a treeview in the reverse order? the thing is i want to delete the entire tree but since it has a child object i have to do it one at a time, in the reverse order. any ideas. i was thinking of accessing the subitem by indexing but i am not sure what the proper syntax is.

    thanks.

    ------------------

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: going up the list of a treeview

    Expose the entire tree one branch at a time from the top. Read the entire tree into a list, then work the list from the bottom.


    John


    ------------------

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Location
    california
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: going up the list of a treeview

    thanks. actually, that what i had in mind but what i am not sure of is how do i go through the list from the bottom first?

    typically, i use the following to go through the list
    for each object in lsobject
    <do this>

    is there a way i can do a reverse?

    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: going up the list of a treeview

    The code below will walk through a list in reverse order.

    Hope this helps




    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:39 PM.

Copyright BetaSoft Inc.