1 Reply Latest reply on Feb 10, 2007 4:34 PM by jedale

    Shifting the order of a tree

      I am trying to allow the user a way of shifting through items in a tree 2 levels deep. This will give the user a chance to order the items within the tree so they can be sent to word in the desired sequence. I have working code for shifting through items at the lowest level but I can't get it to work for the folder level items. Does anybody know a way to do this? I can't find a way to get the Folder Index number. If I had that, then it would be a breeze.

      Thanks for your help.

        • 1. Shifting the order of a tree
          jedale Level 1
          So I found a way to sort the folders, but there seems to be a problem with multiple calls to the function. I found that if you stick with moving one folder up the tree then you won't encounter the problem. However, if you switch to a different folder to move then you will encounter the problem sooner. The problem seems to be copying a portion of the tree and appending it to the end. I don't know what exactly is happening! I was hoping that someone could help me out on this.

          Here is my revised code.