woramon Posted June 10, 2012 Share Posted June 10, 2012 Kafayı yemek üzereyim belkide çok basit birşey ama tam 4 saattir yapamadım "SQLite" denedim "txt" denedim "ini" denedim hiç biri istediğim şekilde olmadı. Ne yapmak istediğimi anlatayım önce. Bir serial sistemi yapmak istiyorum ve kullanıcının inputa girdiği serial benim belirlediğim serialler arasından kontrol edilecek(herhangi bir dosya içinde serialler.) Bu kontrol aşamasında sorun yok buraya kadar tamamım yapabiliyorum ama bir txt içinde 100-150 tane serial var.Dosyanın içinde serialler her satırda bir serial olacak şekilde düzenlendi ama ams satır satır alamıyor yada ben aldıramıyorum. Galiba anlatamadım Kısaca kullanıcının inputa girdiği değer 100-150 tane değer arasından kontrol edilecek. Bu sefer oldu galiba Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 10, 2012 Editor Share Posted June 10, 2012 bir txt ye lisansları kopyala alt alta gelecek şekilde sonra result = TextFile.ReadToTable("C:\\MyFile.txt"); Dialog.Message("",result[2]); bu kodu kullanabilirsin. Quote Link to comment Share on other sites More sharing options...
blackman12 Posted June 10, 2012 Share Posted June 10, 2012 SQLite ile denediysen olmalıydı, çok basit bir sql querysiyle istediğin veriyi çekebilirdin: "select id from serial where kod=inputagirilenserial" Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 10, 2012 Editor Share Posted June 10, 2012 blackman e katılıyorum hem seriallerin gizli tutulmuş olurdu.Tek döngü ile kurtarırdın paçayı. Quote Link to comment Share on other sites More sharing options...
woramon Posted June 10, 2012 Author Share Posted June 10, 2012 SQLite bilmiyorum, forumdaki anlatımlara bakarak yapmaya çalıştım olmadı eğer eliniz de örnek proje varsa verebilirmisiniz Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 10, 2012 Editor Share Posted June 10, 2012 Şuanlık yok ama eger beklersen yarın hazırlayabilirim Quote Link to comment Share on other sites More sharing options...
woramon Posted June 10, 2012 Author Share Posted June 10, 2012 Beklerim Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted June 10, 2012 Share Posted June 10, 2012 (edited) [b]Bir metin belgesi oluşturun ve alt alta serialleri yazın, daha sonra ;[/b] [codebox] tSerial = TextFile.ReadToTable("AutoPlay\\Docs\\serial.txt"); Serial = Input.GetText("Input1"); for i,v in pairs(tSerial) do if Serial == v then Dialog.Message("Uyarı", "Bu serial metin belgesinde mevcut", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); break else Dialog.Message("Uyarı", "Bu serial metin belgesinde yok", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end end [/codebox] Edited June 10, 2012 by Baba_ Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 11, 2012 Editor Share Posted June 11, 2012 (edited) Bu örnek ile yapabilirsin istediğin serialleri veritabanı dosyasına Navicat programı ile eklersin. http://www.mediafire.com/download.php?5mgoyh6ews4m929 Edited June 11, 2012 by pairs 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.