Hello,
Using B4A 10.2 with DBUtils v 2.09
To update a table
This works fine, till there is no error returned by database. Say if some error happens (due to constraint or FK constraint), database might return an error. I want to catch that error and proceed accordingly. How to implement that in B4A ?
Happiness Always
BKR Sivaprakash
Using B4A 10.2 with DBUtils v 2.09
To update a table
B4X:
Dim l as list
l.initialize
dim m as map
m.initialize
m.put("field1", "value1")
m.put("field2", "value2")
l.add(m)
sql.begintransaction
dbutils.insertmaps(sql, "table1", l)
sql.transactionsuccessful
sql.endtransaction
This works fine, till there is no error returned by database. Say if some error happens (due to constraint or FK constraint), database might return an error. I want to catch that error and proceed accordingly. How to implement that in B4A ?
Happiness Always
BKR Sivaprakash