justpl4y Posted June 14, 2013 Share Posted June 14, 2013 Treelist ile sqlite'tan veri çekerken sadece row1'e veri girişi yapabiliyorum. Row2, row3 vs. veri alamıyorum. Help dosyasında her row için aralara "|" işareti konması gerektiği yazıyor. "row1 | row2 | row3" şeklinde yazdığımda işe yarıyor. Ancak, databaseden veri çekmeye çalıştığımda. sonuc.ad | sonuc.soyad gibi, hata veriyor. 2 Gündür uğraşıyorum hala bir sonuca varamadım. Proje dosyası linktedir. Database projenin içinde. http://www.mediafire.com/?hnosechcd78uzoz Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 14, 2013 Share Posted June 14, 2013 şu şekilde yaparsan listeleyecektir: TreeList.AddRow("Plugin1", sonuc.ad .. "|" .. sonuc.soyad .. "|" .. sonuc.tel, nil, nil, nil); yani sonuc.kolon_ismi1 ".. | .." sonuc.kolon_ismi2 şeklinde yazacaksın Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted June 14, 2013 Share Posted June 14, 2013 SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM musteri"); sonuc = SQLite3Cursor:fetch({},"a"); while sonuc do --TreeList.AddRow("Plugin1", sonuc.ad, nil, nil, nil); TreeList.AddRow("Plugin1", sonuc.ad.."|"..sonuc.soyad.."|"..sonuc.tel, nil, nil, nil); sonuc = SQLite3Cursor:fetch(sonuc, "a"); end Quote Link to comment Share on other sites More sharing options...
justpl4y Posted June 14, 2013 Author Share Posted June 14, 2013 çok teşekkürler. her şekilde denedimde bunu denememiştim :) 2 noktayı hangi durumlarda koymamız gerekiyor onuda öğrenebilirmiyim? Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted June 14, 2013 Share Posted June 14, 2013 String devam ediyor demek o iki nokta... Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 14, 2013 Share Posted June 14, 2013 sadece string değil, fonksiyon, değişken, number kısaca herşeyi birbiri ile birleştirme için kullanılır. php de . kullanılır mesela, javascriptte + kullanılır. 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.