Welcome! Log In Create A New Profile

Advanced

Tree in Webdev

Posted by Damian 
Damian
Tree in Webdev
September 18, 2008 08:56PM

Hi Everyone,

I am creating a tree with the following code
____________________________________

sRoot is string
sLeaf is string


sRoot="My Projects"
TreeAdd(MyTree, sRoot,tvDefault,tvDefault, Null)

//---->Create Leaf
sLeaf = sRoot+TAB+"My Project 1"
TreeAdd(MyTree,sLeaf ,tvDefault,tvDefault,sLeaf )

sLeaf = sRoot+TAB+"My Project 2"
TreeAdd(MyTree,sLeaf ,tvDefault,tvDefault,sLeaf )

sLeaf = sRoot+TAB+"My Project 3"
TreeAdd(MyTree,sLeaf ,tvDefault,tvDefault,sLeaf )

-------------------------------------------------------------------
The problem that I have is that I cannot select some of the projects (My Project 1, My Project2 and My Project 3)

I am using the following code:

ResPath is string = TreeSelect(MyTree)
sMyChild is string = ExtractString(ResPath, 2, TAB, FromBeginning)


.....with this code sMyChild is empty


any body have an other idea ?

thanks in advance

Damian
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: