Sub btn_Click
If XSelections.IsSelected = False Then
Log("Nothing is selected")
Else
For Each rowid As Long In XSelections.SelectedLines.Keys
Dim RowData As Map = B4XTable1.GetRow(rowid)
Dim MyAccID As String
MyAccID = RowData.Get("accountID") ' If accountID is 1st col in B4XTable then below line shows c0, if 2nd in B4XTable then below c1
B4XTable1.sql1.ExecNonQuery2("DELETE FROM data WHERE c0 = ?", Array (MyAccID)) 'data is the in-memory table
Log(MyAccID)
Next
B4XTable1.UpdateTableCounters
End If
End Sub