View Full Version : Tree broblem
When i try to get the text of the n0de and click on the tree in a blank area, he give me this error
attemp to index global 'tChildrenOfNode' (a nil value)
TJ_Tigger
11-04-2005, 08:28 AM
What do you have in the On Select even for the Tree?
You may want to add a check to make sure there is something selected before trying to process the information, for instance.
if tChildrenOfNode then
--process the code here.
else
--the table does not exist which might mean that nothing was selected.
end
Using the above code is a GRRRRRRRREAT(oops sorry wrong tiger) habit to get into to verify if you should continue processing code.
Tigg
if tChildrenOfNode then
how i dont thinking about that? :rolleyes
tnx TJ_Tigger :cool
TJ_Tigger
11-05-2005, 10:36 AM
I do the same thing, sometimes making it more difficult than it should be.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.