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)
Professional Software Development Tools
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)
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
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
if tChildrenOfNode then
how i dont thinking about that?![]()
tnx TJ_Tigger![]()
I do the same thing, sometimes making it more difficult than it should be.
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine