db = SqlOpenDatabase("test.db", "1.0", "My Data")
Function Button1_onclick() db = SqlOpenDatabase("test.db", "1.0", "My Data") If db = 0 Then MsgBox "Error opening db" End If sqlListSelect=[] sqlListSelect[0]=["SELECT * FROM dbUsers " , nameFound] Sql(db, sqlListSelect) End Function Function nameFound(transaction, results) If results.rows.length>0 Then TextBox1.text = results.rows.item(0).name TextBox2.text = results.rows.item(0).pass Else MsgBox "error" End If End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)