Table of content 3 B4X SQLite Database
2.6.2.1 Create database....................................................................................................... 41
2.6.2.2 ReadDataBase ........................................................................................................ 41
2.6.2.3 ShowEntry .............................................................................................................. 42
2.6.2.4 AddEntry ................................................................................................................ 43
2.6.2.5 DeleteEntry ............................................................................................................ 44
2.6.2.6 UpdateEntry ........................................................................................................... 44
2.7 SQLite Database second simple example program SQLiteLight2 ................................... 45
2.7.1 Main module source code parts...................................................................................... 47
2.7.1.1 Declaration of the Process global variables ........................................................... 47
2.7.1.2 Show table .............................................................................................................. 48
2.7.1.3 ReadDatabaseRowIDs............................................................................................ 49
2.7.1.4 UpdateSelectedEntryDisplay ................................................................................. 49
2.7.1.5 tblData_CellClicked event ..................................................................................... 50
2.7.2 Edit Module source code parts ....................................................................................... 51
2.7.3 Filter Module source code parts ..................................................................................... 51
2.7.3.1 Update Filters ......................................................................................................... 51
2.7.3.2 GetFilterQuery ....................................................................................................... 52
2.8 SQLite Database third simple example program SQLiteLight3 ...................................... 53
2.9 SQLite Database fourth example program SQLiteLight4 ................................................ 54
2.10 SQLite Viewer ................................................................................................................... 56
3 DBUtils version 2 ....................................................................................................................... 57
3.1 DBUtil functions ................................................................................................................ 58
3.1.1 CopyDBFormAssets B4A, B4i .................................................................................... 59
3.1.2 CopyDBFormAssets B4J ............................................................................................. 59
3.1.3 CreateTable B4A, B4i, B4J .......................................................................................... 59
3.1.4 DeleteRecord B4A, B4i, B4J ....................................................................................... 59
3.1.5 DropTable B4A, B4i, B4J ............................................................................................ 60
3.1.6 ExecuteHtml B4A, B4i, B4J ........................................................................................ 60
3.1.7 ExecuteJSON B4A, B4i, B4J ....................................................................................... 60
3.1.8 ExecuteList B4A, B4i, B4J ........................................................................................... 60
3.1.9 ExecuteListView B4A ................................................................................................. 61
3.1.10 ExecuteMap B4A, B4i, B4J ..................................................................................... 61
3.1.11 ExecuteMemoryTable B4A, B4i, B4J ..................................................................... 61
3.1.12 ExecuteTableView B4J ............................................................................................ 61
3.1.13 ExecuteSpinner B4A ................................................................................................ 61
3.1.14 GetDBFolder B4A, B4i, B4J ................................................................................... 62
3.1.15 GetDBVersion B4A, B4i, B4J .................................................................................. 62
3.1.16 GetFieldInfo B4A, B4i, B4J ..................................................................................... 62
3.1.17 GetTables B4A, B4i, B4J .......................................................................................... 62
3.1.18 InsertMaps B4A, B4i, B4J ....................................................................................... 62
3.1.19 SetDBVersion B4A, B4i, B4J .................................................................................. 62
3.1.20 TableExists B4A, B4i, B4J ...................................................................................... 62
3.1.21 UpdateRecord B4A, B4i, B4J .................................................................................. 63
3.1.22 UpdateRecord2 B4A, B4i, B4J ................................................................................ 63
3.2 Examples ............................................................................................................................ 63
3.3 DBUtilsDemo example B4XPages project ....................................................................... 64
3.3.1 Code differences............................................................................................................. 66