I use types to keep track of sqlite records.
ie
How can I store the type ID into a sqlite table?
I've tried creating an IDs table that is simply TableID Int and Details Blob
doing this causes a crash at the ExecNonQuery call
mySQL.ExecNonQuery(s)
the Type is a string of the fields plus an IsInitialised=True
:sign0163: help?
regards, Ricky
ie
B4X:
Type tID(TableID As Int, TableName As String, LastID As Int, AddingNew As Boolean)
Dim ID As tID
Dim s As String
DBUtils.DropTable(mySQL,"IDs")
'IDs
Dim m As Map
m.Initialize
m.Put("TableID",DBUtils.DB_INTEGER)
m.Put("Details",DBUtils.DB_BLOB)
DBUtils.CreateTable(mySQL,"IDs",m,"TableID")
'Insert some IDs
ID.Initialize
ID.TableID = 1
ID.TableName = "IDs"
ID.LastID = 1
s = "INSERT INTO IDs (TableID,Details) VALUES(1," & ID & ")"
mySQL.ExecNonQuery(s)
How can I store the type ID into a sqlite table?
I've tried creating an IDs table that is simply TableID Int and Details Blob
doing this causes a crash at the ExecNonQuery call
mySQL.ExecNonQuery(s)
the Type is a string of the fields plus an IsInitialised=True
:sign0163: help?
regards, Ricky