when i click cancel from dialog message, it doesnt stop next dialog !!!
Code:FindNode = Dialog.Input("Find Node", "Node Name:", "", MB_ICONQUESTION); tbFound = Tree.FindAllNodesByText("Tree1", "0", FindNode, false); for i,v in tbFound do Tree.ExpandNode("Tree1", i); Tree.SetSelectedNode("Tree1", v); Go = Dialog.Message(i, v, MB_OKCANCEL, MB_ICONINFORMATION, MB_DEFBUTTON2); if Go == "CANCEL" then Application.ExitScript(); else end end

Reply With Quote