Jump to content

Checkboxtaki Yazıyı Txt Aktarmak Ve .cfg Diye Kaydetme


Tncte
 Share

Recommended Posts

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 ?

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...