kensopoy Posted July 22, 2014 Share Posted July 22, 2014 (edited) merhaba arkadaşlar ams7 de bu kodlar çalışıyordu fakat şimdi çalışmıyor. secim = Tree.GetSelectedNode("Tree1") if secim == "3.1.1" then resultString = TextFile.ReadToString("AutoPlay\\Docs\\icerik\\Yazi\\fetvalar\\akide\\1.txt"); Paragraph.SetText("Paragraph1",resultString); elseif secim == "3.1.2" then resultString = TextFile.ReadToString("AutoPlay\\Docs\\icerik\\Yazi\\fetvalar\\akide\\2.txt"); Paragraph.SetText("Paragraph1",resultString); end Ben treelist'en girdiğim yazılara tıklayınca yan tarafta gösteriyordu. Yani fetva gibi düşünün fakat ams8 de çalışmıyor acaba yanlış nerede? Dosya yoluda doğru ? Edited July 22, 2014 by kensopoy Quote Link to comment Share on other sites More sharing options...
korasoglu Posted July 22, 2014 Share Posted July 22, 2014 Docs klssorune istediğin kadar txt at hepsini otamatik yükleyip çalıştıracak Sen bir tane Listbox ekle birde Pragraph nesnesi OnShow ------------- result = File.Find(_SourceFolder .. "\\AutoPlay\\Docs\\", "*.txt", false, false, nil, nil); for i,v in pairs(result) do kes = String.SplitPath(v); ListBox.AddItem("ListBox1", kes.Filename, v); end On Select Listbox ------------ result = ListBox.GetSelected("ListBox1"); yaz = ListBox.GetItemData("ListBox1", result[1]); yaz = TextFile.ReadToString(yaz); Paragraph.SetText("Paragraph1", yaz); hepsi bu kadar Quote Link to comment Share on other sites More sharing options...
kensopoy Posted July 22, 2014 Author Share Posted July 22, 2014 (edited) Docs klssorune istediğin kadar txt at hepsini otamatik yükleyip çalıştıracak Sen bir tane Listbox ekle birde Pragraph nesnesi OnShow ------------- result = File.Find(_SourceFolder .. "\\AutoPlay\\Docs\\", "*.txt", false, false, nil, nil); for i,v in pairs(result) do kes = String.SplitPath(v); ListBox.AddItem("ListBox1", kes.Filename, v); end On Select Listbox ------------ result = ListBox.GetSelected("ListBox1"); yaz = ListBox.GetItemData("ListBox1", result[1]); yaz = TextFile.ReadToString(yaz); Paragraph.SetText("Paragraph1", yaz); hepsi bu kadar Emeğin için teşekkür ederim kardeşim ama ben bir sürü alt bölüm oluşturacağım.sadece tek klasörün için .txt atmıyacağım yoksa çok karışık olur. Yani alt kategorilerde olacağı için. Edited July 22, 2014 by kensopoy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.