it seemed to b right but i get the error in the image... when i click in tree object where there is no node i get this error...
and when i use that code it loads the first node of tree object, if i click somewhere that doesnt have a node in tree object !!!
Code:
seleccionado = Tree.GetSelectedNode("Tree1"); if seleccionado ~= nil then infodelarbol = Tree.GetNode("Tree1", seleccionado); if infodelarbol.Data ~= "" then IExplorer.Navigate("Plugin1", infodelarbol.Data); Input.SetText("AdressBar", infodelarbol.Data); else end end
and when i use that code it loads the first node of tree object, if i click somewhere that doesnt have a node in tree object !!!
Code:
seleccionado = Tree.GetSelectedNode("Tree1"); if seleccionado ~= "" then infodelarbol = Tree.GetNode("Tree1", seleccionado); if infodelarbol.Data ~= "" then IExplorer.Navigate("Plugin1", infodelarbol.Data); Input.SetText("AdressBar", infodelarbol.Data); else end end
Comment