Good night, does anyone have an example of how to delete a record from a listview ?? I'm adding records in a listview I want to click a row in the listview and delete the record
The command I am using to add the records in the database is this:
S.ExecNonQuery2 ("INSERT INTO PRODUCTS (rowid, CODBARRAS, QUANTITY) VALUES (NULL,?,?)", Array As String (Edtdescr.Text, EdtQtde.Text))
I give a SELECT
C = s.ExecQuery ("SELECT CODBARRAS, QUANTITY FROM PRODUCTS ORDER BY CODBARRAS, QUANTITY")
And add in the listview
Lvadiciona.AddTwoLines (C.GetString ("CODBARRAS"), C.GetString
("AMOUNT"))
I want to click on the row in the listview to select the record and delete.
Thank you !!
The command I am using to add the records in the database is this:
S.ExecNonQuery2 ("INSERT INTO PRODUCTS (rowid, CODBARRAS, QUANTITY) VALUES (NULL,?,?)", Array As String (Edtdescr.Text, EdtQtde.Text))
I give a SELECT
C = s.ExecQuery ("SELECT CODBARRAS, QUANTITY FROM PRODUCTS ORDER BY CODBARRAS, QUANTITY")
And add in the listview
Lvadiciona.AddTwoLines (C.GetString ("CODBARRAS"), C.GetString
("AMOUNT"))
I want to click on the row in the listview to select the record and delete.
Thank you !!