Public Sub CreateDBTables As ResumableSub
Dim Success As Boolean
Try
#If B4J
Main.DB.InitializeSQLite(Main.DATA_FOLDER, Main.DATA_FILE, False)
#Else
Main.DB.Initialize(Main.DATA_FOLDER, Main.DATA_FILE, False)
#End If
For i = 1 To script.Length - 1
Main.DB.AddNonQueryToBatch(script(i), Null)
Next
Dim SenderFilter As Object = Main.DB.ExecNonQueryBatch("SQL")
Wait For (SenderFilter) SQL_NonQueryComplete (Success As Boolean)
If Not(Success) Then
LogColor(LastException.Message, xui.Color_Red)
End If
Catch
LogColor(LastException.Message, xui.Color_Red)
End Try
Main.DB.Close
Return Success
End Sub