User Tools

Site Tools


sample_code:passwordvault

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
sample_code:passwordvault [2022/07/24 17:04]
al4he6 created
sample_code:passwordvault [2022/07/24 21:50]
al4he6 database path added, to make it work as APK
Line 63: Line 63:
 } // fn } // fn
 function opendb () { function opendb () {
-    db = app.OpenDatabase( "Vault" )  +//    db = app.OpenDatabase( "Vault" ) // does not work as APK   
 +    db = app.OpenDatabase(app.GetSpecialFolder("Downloads")+"/Vault" )  
     db.ExecuteSql("CREATE TABLE IF NOT EXISTS passwords (site text primary key, epw text)")       db.ExecuteSql("CREATE TABLE IF NOT EXISTS passwords (site text primary key, epw text)")  
 //db.ExecuteSql("DELETE FROM passwords",[],null,delError) // testing //db.ExecuteSql("DELETE FROM passwords",[],null,delError) // testing
sample_code/passwordvault.txt · Last modified: 2022/07/26 11:37 by al4he6