Bumbo Posted December 25, 2011 Share Posted December 25, 2011 (edited) Best regards and respect ... How to call or open a database in [b]On Preload[/b]? [code]---How to call or open a database in [b]On Preload[/b]?--- row = db:nrows("SELECT * FROM rascas WHERE ID") Input.GetText("pon1", row.cas1); Input.GetText("pon2", row.cas2); Input.GetText("pon3", row.cas3); Input.GetText("pon4", row.cas4); Input.GetText("pon5", row.cas5); Input.GetText("pon6", row.cas6); Input.GetText("pon7", row.cas7);[/code] Thanx... Edited December 25, 2011 by Bumbo Quote Link to comment Share on other sites More sharing options...
NotToday Posted December 25, 2011 Share Posted December 25, 2011 (edited) Description not logged in.But I think db to open the database(Actions/On Startup) [quote]SQLite3Connection, err = SQLite3:connect("Data\\database.db")[/quote] To Set data (Page/Show) [quote]SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM main") if SQLite3Cursor ~= nil then tVeriler = SQLite3Cursor:fetch({}, "a") while tVeriler do TreeList.AddRow("Plugin1", tVeriler.id+100 .. "|" .. tVeriler.isim .. "|" .. tVeriler.sirket .. "|" .. tVeriler.telefon .. "|" .. tVeriler.faks .. "|" .. tVeriler.mobil, nil, nil, nil) tVeriler = SQLite3Cursor:fetch(tVeriler,"a") end end[/quote] I would recommend that you examine the example [quote]http://www.tnctr.com/topic/190983-[/quote] Edited December 25, 2011 by ReaLyMaN Quote Link to comment Share on other sites More sharing options...
Bumbo Posted December 26, 2011 Author Share Posted December 26, 2011 Here's my example ... Oh how we now call the database? In this InoutBox? "On Show" how? It does not ask for my hand, never! Thanks in advance. [code]http://www.megaupload.com/?d=57281MXD[/code] Quote Link to comment Share on other sites More sharing options...
NotToday Posted December 26, 2011 Share Posted December 26, 2011 Look at the personal message. Quote Link to comment Share on other sites More sharing options...
pilgetir Posted December 26, 2011 Share Posted December 26, 2011 İngdigorose az geldi .. Attempt to correct the code Realyman friend Quote Link to comment Share on other sites More sharing options...
NotToday Posted December 26, 2011 Share Posted December 26, 2011 İngdigorose özendik ama sonuç vahim Quote Link to comment Share on other sites More sharing options...
Bumbo Posted December 26, 2011 Author Share Posted December 26, 2011 (edited) [quote name='ReaLyMaN' date='26 December 2011 - 20:33 ' timestamp='1324924437' post='1132471'] Look at the personal message. [/quote] I know that the database built in MyDocuments ... but I want that when you open the application looks like? Thank you for your help! [img]http://upload.slike.com/slike/OAq0.png[/img] Edited December 26, 2011 by Bumbo Quote Link to comment Share on other sites More sharing options...
MostWanted Posted December 26, 2011 Share Posted December 26, 2011 Your image link is invalid? 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.