hi there,
I need to check if a string already exists as an item in the Picktree.
Is there a way/function to get an item/the whole list back from picktree?
I'm looking for something like
if mystring := PickTreeItem(count) then ...
There's no need to check the adress too.
thanks
J.
picktree function
If it is not listed in the help file, there is no function for that (I didn't make one, so except if added later by soulsnake, it does not exist).
If you need to know what is in the tree, you may maintain a TStringList where you add the same content as what you add to the tree, so you can check there what is supposed to be in the tree.
If you need to know what is in the tree, you may maintain a TStringList where you add the same content as what you add to the tree, so you can check there what is supposed to be in the tree.
nope, found no function for that in the help file.
A second list is what I tried to avoid first, but I guess when I additionaly try to delete an item from the tree, another function would be necessary and so on.
So I better do the whole stuff in a list first and fill the tree at the end with all the items from the list.
thanks
J.
A second list is what I tried to avoid first, but I guess when I additionaly try to delete an item from the tree, another function would be necessary and so on.
So I better do the whole stuff in a list first and fill the tree at the end with all the items from the list.
thanks
J.