WolfmanTR_ Posted March 16, 2013 Share Posted March 16, 2013 arkadaşlar .ini dosyasındaki veri 1 ise x check i işaretleyecek.Konumlar doğru ama işaretleme yapmıyor. on show result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome"); if result == 1 then CheckBox.SetChecked("chrome", true); end Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted March 16, 2013 Share Posted March 16, 2013 result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome"); if result == "1" then CheckBox.SetChecked("chrome", true); end denermisin bide Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted March 16, 2013 Author Share Posted March 16, 2013 evet, tırnak içine alınca oldu. tırnaksız butonda oluyor ondan biraz karıştı ortalık :D Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted March 21, 2013 Share Posted March 21, 2013 String.ToNumber kullanmayı unutmayın. Ini'den çektiğin veri tipi stringdir. Quote Link to comment Share on other sites More sharing options...
3yl3mci Posted April 1, 2013 Share Posted April 1, 2013 ee peki bu dosyalar fazlaysa nasl olacak result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");if result == "1" thenCheckBox.SetChecked("chrome", true);end result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome"); if result == "1" thenCheckBox.SetChecked("chrome", true);end result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome"); if result == "1" thenCheckBox.SetChecked("chrome", true);end böle alt alta biraz eziyetli oluyor gibime gelior :S sadece yolları nasil ekleriz listboxa hocam yardım edermisiniz.. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted April 1, 2013 Author Share Posted April 1, 2013 (edited) ee peki bu dosyalar fazlaysa nasl olacak result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");if result == "1" thenCheckBox.SetChecked("chrome", true);end result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome"); if result == "1" thenCheckBox.SetChecked("chrome", true);end result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome"); if result == "1" thenCheckBox.SetChecked("chrome", true);end böle alt alta biraz eziyetli oluyor gibime gelior :S sadece yolları nasil ekleriz listboxa hocam yardım edermisiniz.. for döngüsü yapacaksın, for i,v in pairs(result) do url = INIFile.GetValue("AutoPlay\\Docs\\data.ini", "ayar", v); result = ListBox.AddItem("ListBox1", ayar, v); end [ayar] sectionundaki tüm value leri Listbox a ekler Edited April 1, 2013 by WolfmanTR_ Quote Link to comment Share on other sites More sharing options...
3yl3mci Posted April 1, 2013 Share Posted April 1, 2013 Hocam Kullaniyorum for döngüsünü ama işe yaramiyor :D trelist için kullaniyorum :S nListe = INIFile.GetValueNames("AutoPlay\\Settings\\Data.ini", "Folders"); --- ini Dosya dizini for i,v in pairs(nListe) do tAdres = INIFile.GetValue("AutoPlay\\Settings\\Data.ini", "Folders", v); AddTrelist = TreeList.AddRow("Plugin1", nListe, nil, nil, nil); end Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted April 1, 2013 Editor Share Posted April 1, 2013 nListe = INIFile.GetValueNames("AutoPlay\\Settings\\Data.ini", "Folders"); --- ini Dosya dizini for i,v in pairs(nListe) do tAdres = INIFile.GetValue("AutoPlay\\Settings\\Data.ini", "Folders", v); AddTrelist = TreeList.AddRow("Plugin1", tAdres, nil, nil, nil); end hata yaptıgın yeri kırmızı ile işaretledim. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 1, 2013 Share Posted April 1, 2013 bence tAdres = INIFile.GetValue("AutoPlay\\Settings\\Data.ini", "Folders", v); yerine tAdres = INIFile.GetValue("AutoPlay\\Settings\\Data.ini", v, "Folders"); olması lazım :) Quote Link to comment Share on other sites More sharing options...
3yl3mci Posted April 1, 2013 Share Posted April 1, 2013 Sağolun ikinize ayrı ayrı tşk ederim Ellerinize Sağlık Quote Link to comment Share on other sites More sharing options...
3yl3mci Posted April 2, 2013 Share Posted April 2, 2013 Hocam string değerlerini ekliyemedim treliste yardımcı olabilirmsiniz... Quote Link to comment Share on other sites More sharing options...
superhalit Posted April 2, 2013 Share Posted April 2, 2013 bir örnek proje yollarsan daha iyi olur 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.