spydevil Posted January 22, 2011 Share Posted January 22, 2011 linkleri yenilicem ama bendede yok silindi project klasörü hepsi gitti :S Quote Link to comment Share on other sites More sharing options...
galetis Posted January 26, 2011 Author Share Posted January 26, 2011 (edited) Listbox'taki veriyi Delete komutuyla veritabanından silme anlatımı eklendi..! Edited January 26, 2011 by galetis Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 27, 2011 Share Posted January 27, 2011 AMS ile SQLite kullanımında sayende baya ilerledim. Daha önce hiç fırsatım olmamıştı ama anlatımların bana açıkçası gaz verdi AIO'dan farklı konulara değindiğin ve bu güzel anlatımların için teşekkürler. Quote Link to comment Share on other sites More sharing options...
galetis Posted January 27, 2011 Author Share Posted January 27, 2011 (edited) Sana bile bişeyler öğretebildiysem ne mutlu bana Artık bu anlatımlarla Ams'de ini'den vazgeçersiniz sanırım Edited January 27, 2011 by galetis Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 27, 2011 Share Posted January 27, 2011 hiç sorma ya, ini çok güzelde işte hem yavaş kalıyor hemde sağlıklı değil mesela 5000 satırdan fazla veri varsa AMS veri alamıyor vs. ama SQL oyle değil işte isterse 500000 satır olsun Quote Link to comment Share on other sites More sharing options...
galetis Posted January 27, 2011 Author Share Posted January 27, 2011 Başlama sebebimde buydu.. Ayrıca Sql'de mantıksal işlemlerde kolay.. Oylar artarsa eğer Sql'in bildiğim birçok özelliğini paylaşmayı düşünüyorum Quote Link to comment Share on other sites More sharing options...
egemynet Posted January 27, 2011 Share Posted January 27, 2011 (edited) kaç oy lazım ben vereyim şaka bi yana hakkaten ini den vazgeçeceğiz gibi görünüyor. Başarılı çalışmalarının devamını döngüler eşliğinde bekleriz. Merak ettiğim bişey daha var bunda cryto kodunu kullanmadan güvenlik sağlama imkanı varmı acaba.Tekrar teşekkürler Edited January 27, 2011 by egemynet Quote Link to comment Share on other sites More sharing options...
galetis Posted January 27, 2011 Author Share Posted January 27, 2011 (edited) Siz üstadlar yardımıyla devam edeceğiz zaten. Ini'ye ölüm Edit: Güvenlik var.. Sql dosyalarına şifreli bağlantı sağlanıyor. Tam çözeyim o durumu paylaşıcam zaten. Edited January 27, 2011 by galetis Quote Link to comment Share on other sites More sharing options...
Sistemci Posted January 27, 2011 Share Posted January 27, 2011 (edited) abi peki Gride verileri nasıl gösterebiliriz 2.sorum resimdeki gibi bir tabloyu nasıl yapabilirim. [img]http://i55.tinypic.com/2m67nu8.jpg[/img] Edited January 27, 2011 by Sistemci Quote Link to comment Share on other sites More sharing options...
galetis Posted January 27, 2011 Author Share Posted January 27, 2011 [code] SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM kisiler"); yazdir = SQLite3Cursor:fetch({},"a") a = 1; while yazdir do Grid.SetCellText("Grid1", a, 1, yazdir.adi, true); Grid.SetCellText("Grid1", a, 2, yazdir.soyadi, true); yazdir = SQLite3Cursor:fetch(yazdir,"a"); a = a+1; end [/code] Gride eklemeyi bu komutla yapmayı dene.. 2.Sorunun cevabı ise 1.derste yer alıyor.. Quote Link to comment Share on other sites More sharing options...
Sistemci Posted January 27, 2011 Share Posted January 27, 2011 abi çok sağol yaptım süper oldu yanlız ikinci sorumun cevabını yapamadım. veritabanında 10 isim var örneğin abi bende 10 tane yapıyorum gride.benim istediğim kullanıcı ekleme yaptıkça grid 11 otomotik eklesin istiyorum sütünü kendine ama bir türlü yapamadım yardımcı olursan çok sevinirim abi tşkler Quote Link to comment Share on other sites More sharing options...
galetis Posted January 27, 2011 Author Share Posted January 27, 2011 Senin dediğini yapmak için gride her ekleme yaptığın zaman grid'e bir satır eklemek gerekir.. Bunu içinde Grid.InsertColumn komutunu kullanabilirsin.. En başta Grid'in satır(Column) sayısını 1 yap.. Ondan sonra listeleme butonuna bu kodları kullan.. Bu sayede her grid'e eleman eklendiğinde Grid'in satır sayısı 1 artacaktır [code] SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM kisiler"); yazdir = SQLite3Cursor:fetch({},"a") a = 1; while yazdir do Grid.SetCellText("Grid1", a, 1, yazdir.adi, true); Grid.SetCellText("Grid1", a, 2, yazdir.soyadi, true); yazdir = SQLite3Cursor:fetch(yazdir,"a"); a = a+1; Grid.InsertColumn("Grid1", -1, true); end [/code] Quote Link to comment Share on other sites More sharing options...
Sistemci Posted January 28, 2011 Share Posted January 28, 2011 (edited) [quote name='galetis' date='27 Ocak 2011 - 21:48 ' timestamp='1296158289' post='952698'] Senin dediğini yapmak için gride her ekleme yaptığın zaman grid'e bir satır eklemek gerekir.. Bunu içinde Grid.InsertColumn komutunu kullanabilirsin.. En başta Grid'in satır(Column) sayısını 1 yap.. Ondan sonra listeleme butonuna bu kodları kullan.. Bu sayede her grid'e eleman eklendiğinde Grid'in satır sayısı 1 artacaktır [code] SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM kisiler"); yazdir = SQLite3Cursor:fetch({},"a") a = 1; while yazdir do Grid.SetCellText("Grid1", a, 1, yazdir.adi, true); Grid.SetCellText("Grid1", a, 2, yazdir.soyadi, true); yazdir = SQLite3Cursor:fetch(yazdir,"a"); a = a+1; Grid.InsertRow("Grid1", -1, true); end [/code] [/quote] Tşkler abi senin verdiğin koddan yola çıkarak farklı bir kodla istediğimi yaptım .Grid.InsertRow("Grid1", -1, true); bu kodu kullandım Edited January 28, 2011 by Sistemci Quote Link to comment Share on other sites More sharing options...
Sistemci Posted January 29, 2011 Share Posted January 29, 2011 değer değiştir butonu istediğimi seçemiyorum id 1 olduğu için sadece 1 nuamradaki işiyi gösteriyor. ne yaptiysam değiştiremedim boş bıraktım 1-1000 değer girdim 1 ile 1000 arasındaki tüm id numaralarını göstersin diye ama olmadı yardımcı olursan sevinirim 2.sorum : birde bu bilgileri gördükten sonra bunların değişmesini nasıl sağlıyabilirim abi. SQLite3Cursor, err = SQLite3Connection:execute("SELECT adi,soyadi,telefon FROM kisiler where id='1'"); adi,soyadi,telefon = SQLite3Cursor:fetch(); Input.SetText("adi", adi); Input.SetText("soyadi", soyadi); Input.SetText("telefon", telefon); Quote Link to comment Share on other sites More sharing options...
galetis Posted January 29, 2011 Author Share Posted January 29, 2011 İlk sorun için verdiğim While - Select komutunu kullan. Videoda nasıl kullanacağın veriliyor zaten. 2.Sorun-Bilgilerin değişmesi Update komutuyla sağlanır. Sonraki derste güncelleme komutunu kullanıcam. Quote Link to comment Share on other sites More sharing options...
Sistemci Posted February 1, 2011 Share Posted February 1, 2011 kullanıcının girşini veritabanından almak istiyorum. onun içinde bir proje hazırladım.kullanıcı adında hata veriyor ama şifreyi sorgulamıyor ne yazarsan yaz kabul ediyor.yardımcı olursanız sevinirim giriş butonu SQLite3Connection, err = SQLite3:connect("C:\\kullanicilar.db"); ---giriş bilgileri kullanici = Input.GetText("kul"); sifre = Input.GetText("sif"); ---sorgula SQLite3Connection, err = SQLite3:connect("C:\\kullanicilar.db", kullanici,sifre); if kullanici ~= sifre then Dialog.Message("Bilgi","Başarılı Giriş") Page.Jump("Page2") else Dialog.Message("Hata", "Hatalı kullanıcı adı veya şifre") end Quote Link to comment Share on other sites More sharing options...
galetis Posted February 2, 2011 Author Share Posted February 2, 2011 Kodlarda bi yanlışlık yokmu sence? SQLite3Connection komutunu 2 kere kullanmışsın. 2.si seçme sorgusu olacaktı. Quote Link to comment Share on other sites More sharing options...
Sistemci Posted February 3, 2011 Share Posted February 3, 2011 yine hata alıyorum abi nerde hata çözemedim yardımcı olur musunuz ---giriş bilgileri kullanici = Input.GetText("kul"); sifre = Input.GetText("sif"); ---sorgula SQLite3Cursor, err = SQLite3Connection:execute("WHERE kisiler set kul='"..kullanici.."', sif='"..sifre.."'"); if kullanici ~= sifre then Dialog.Message("Bilgi","Başarılı Giriş") Page.Jump("Page2") else Dialog.Message("Hata", "Hatalı kullanıcı adı veya şifre") end Quote Link to comment Share on other sites More sharing options...
galetis Posted February 3, 2011 Author Share Posted February 3, 2011 [code] ad = Input.GetText("adi"); soyad = Input.GetText("soyadi"); SQLite3Cursor, err = SQLite3Connection:execute("SELECT count(*) FROM kisiler where adi='"..ad.."' and soyadi='"..soyad.."'"); sonuc = SQLite3Cursor:fetch(); sayisal = String.ToNumber(sonuc); if (sayisal > 0) then Dialog.Message("Notice", "giriş başarılı."); else Dialog.Message("Notice", "giriş yapılamadı."); end [/code] ad,soyad değişkenlerini input nesnelerinden aldık. bunlarla veritabanında select komutuyla ad ve soyad'ı içeren kaç satır varsa sayısını count(*) ile aldık. sonuc değişkenine bu sayıyı string olarak fetch komutuyla aktardık. mantıksal karşılaştırma için sonuc'u sayı türüne sayisal değişkeni ile geçirdik. if kontrolüyle sayisal değeri 0'dan büyükse yani 0 dan fazla satır sayısı varsa if kontrolündeki işlemleri yaptırmasını sağladık. bu kadar kolay Quote Link to comment Share on other sites More sharing options...
Sistemci Posted February 3, 2011 Share Posted February 3, 2011 [img]http://i1102.hizliresim.com/2011/2/3/2668.jpg[/img] giriş butonu kod içeriği kul = Input.GetText("kul"); sif = Input.GetText("sif"); SQLite3Cursor, err = SQLite3Connection:execute("SELECT count(*) FROM kullanicilar where kullanici='"..kul.."' and sifre='"..sif.."'"); sonuc = SQLite3Cursor:fetch(); sayisal = String.ToNumber(sonuc); if (sayisal > 0) then Dialog.Message("Başralı", "giriş başarılı."); else Dialog.Message("Hatalı", "giriş yapılamadı."); end Quote Link to comment Share on other sites More sharing options...
galetis Posted February 3, 2011 Author Share Posted February 3, 2011 Global'e yada sayfaya SQLite3Connection yaptınmı ? Quote Link to comment Share on other sites More sharing options...
Sistemci Posted February 3, 2011 Share Posted February 3, 2011 [quote name='galetis' date='03 Şubat 2011 - 15:53 ' timestamp='1296741820' post='956840'] Global'e yada sayfaya SQLite3Connection yaptınmı ? [/quote] evet yaptım SQLite3Connection, err = SQLite3:connect("C:\\kullanicilar.db"); globalda Quote Link to comment Share on other sites More sharing options...
galetis Posted February 3, 2011 Author Share Posted February 3, 2011 Proje dosyanı veritabanı ile yolla bakayım Quote Link to comment Share on other sites More sharing options...
Sistemci Posted February 3, 2011 Share Posted February 3, 2011 [quote name='galetis' date='03 Şubat 2011 - 16:01 ' timestamp='1296742291' post='956847'] Proje dosyanı veritabanı ile yolla bakayım [/quote] abi tşk ediyorum yardımların için Quote Link to comment Share on other sites More sharing options...
Sistemci Posted February 5, 2011 Share Posted February 5, 2011 kullanıcı bilgilerini ınputlara yazdırıyorum yanlız sadece id 1 yazdıra biliyorum kodlar SQLite3Connection, err = SQLite3:connect("C:\\uyeler.db") secilen = ListBox.GetSelected("ListBox1"); id = ListBox.GetItemData("ListBox1", secilen[1]); SQLite3Cursor, err = SQLite3Connection:execute("SELECT adi,soyadi,telefon,tarih,aciklama FROM kisiler where id='1'"); adi,soyadi,telefon,tarih,aciklama = SQLite3Cursor:fetch(); Input.SetText("adi", adi); Input.SetText("soyadi", soyadi); Input.SetText("telefon", telefon); Input.SetText("tarih", tarih); Input.SetText("aciklama", aciklama); bunları güncellemek içinde güncelle butonu yaptım buda -----güncelle secilen = ListBox.GetSelected("ListBox1"); id = ListBox.GetItemData("ListBox1", secilen[1]); Input.GetText("id", id); Input.GetText("adi", adi); Input.GetText("soyadi", soyadi); Input.GetText("telefon", telefon); Input.GetText("tarih", tarih); Input.GetText("aciklama",aciklama); SQLite3Cursor, err = SQLite3Connection:execute("update kisiler set adi='"..adi.."', soyadi='"..soyadi.."',telefon='"..telefon.."', tarih='"..tarih.."',aciklama='"..aciklama.."' where id="..id..""); Dialog.Message("Bilgi", "Kullanıcıyı Silmek İster Misin", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1); hatam nerede yarcımcı olursanız sevinirim 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.