Jump to content

How To Call Or Open A Database?


Bumbo
 Share

Recommended Posts

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 by Bumbo
Link to comment
Share on other sites

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 by ReaLyMaN
Link to comment
Share on other sites

[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 by Bumbo
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...