following the example code here .. https://www.b4x.com/android/forum/threads/b4x-b4xtable-delete-row.103582/
Is the following line supposed to delete record from the Database also , or only from the Table , (list Data) ?
following this example ... https://www.b4x.com/android/forum/threads/b4x-b4xtable-load-data-from-sql-database.102520/
(and Including the Sub Delete Code from top links ... it only works / does not error with ..
what am I missing ... Thanks
Is the following line supposed to delete record from the Database also , or only from the Table , (list Data) ?
B4X:
Sub DeleteRow (tbl As B4XTable, RowId As Long)
tbl.sql1.ExecNonQuery2("DELETE FROM data WHERE rowid = ?", Array (RowId))
following this example ... https://www.b4x.com/android/forum/threads/b4x-b4xtable-load-data-from-sql-database.102520/
(and Including the Sub Delete Code from top links ... it only works / does not error with ..
B4X:
Sub DeleteRow (tbl As B4XTable, RowId As Long)
tbl.sql1.ExecNonQuery2("DELETE FROM data WHERE rowid = ?", Array (RowId)) 'deletes from table
'from RowId .. we extract value of 1st Column "Customer Id"
sql.ExecNonQuery2("DELETE FROM customers WHERE customerId = ?", Array (customerId)) 'Deletes from DB
what am I missing ... Thanks
Last edited: