NotToday Posted October 16, 2011 Share Posted October 16, 2011 Aklıma söyle bir yöntem geldi.İni dosyasına [Seçim] CheckBox1=1 CheckBox2=0 CheckBox3=1 Bir yazı yazsam.Burda chackboxın hangisi 1 ise butona tıklayınca onları seçse 0 olanları seçmese.Nasıl yapabilirim? Quote Link to comment Share on other sites More sharing options...
KintaRo Posted October 16, 2011 Share Posted October 16, 2011 [code]tNames = INIFile.GetValueNames("AutoPlay\\Docs\\data.ini", "Secim") if tNames then for i,v in pairs(tNames) do if INIFile.GetValue("AutoPlay\\Docs\\data.ini", "Secim", v) == "1" then CheckBox.SetChecked(v, true) end end end[/code] CheckBox isimleri CheckBox1, CheckBox2, CheckBox3 ... şeklinde gitmelidir. 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.