Tncte Posted July 17, 2016 Share Posted July 17, 2016 Arkadaşlar merhaba mesela checkboxta bi bi yazı aktarıcam checkbox işaretlenince o yazı metin belgesine kaydedicek ve en son butona bastıgımda işaretli olan kodları x.cfg olarak masaüstüne kaydedicek bunu nasıl yapabilirim ? Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 17, 2016 Share Posted July 17, 2016 if CheckBox.GetChecked("CheckBox1") then TextFile.WriteFromString(_DesktopFolder .. "\\dosya.cfg", CheckBox.GetText("CheckBox1"), false) end kodun sonundaki false'ı true yaparsanız eğer dosya.cfg dosyası mevcut ise içindeki metnin yanına aldığı metni ekler. false olarak kalırsa dosya yoksa oluşturur varsa içindeki metni silip sadece verdiğiniz metni yazar. 1 Quote Link to comment Share on other sites More sharing options...
Tncte Posted July 17, 2016 Author Share Posted July 17, 2016 Peki abi yazdıracağım metni checkboxa nasıl ekliyeceğim Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 17, 2016 Share Posted July 17, 2016 e sen checkboxtaki metni alacağım dedim, checkboxta ne yazacak ki? bence sen textboxla beraber checkbox kullanmalısın 1 Quote Link to comment Share on other sites More sharing options...
Tncte Posted July 17, 2016 Author Share Posted July 17, 2016 Senin dediğin gibi olucak abi mesela textbox a 3.0 yazdı metin belgesine sensivity 3.0 yazıcak. checkboxta şöyle olucak diyelim x kodlarını ekle seçilirse metin belgesine checkboxtaki yazılı olan şeyi yazdırıcak en son olarak buton ile .cfg olarak kaydedicek. 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.