Good night friends, I have a problem that I am not able to solve I am developing a data collector app using a listview to add the scanned bar codes only the codes are duplicating in my listview follows the image of the duplicate codes, Code where I add the records in the listview.
Has anyone ever experienced this??
Code:
If Edtdescr.Text<>"" Then
s.ExecNonQuery2("INSERT INTO PRODUTOS (rowid,CODBARRAS,QUANTIDADE) VALUES (NULL,?,?)", Array As String(Edtdescr.Text,EdtQtde.Text))
c=s.ExecQuery("SELECT CODBARRAS,QUANTIDADE FROM PRODUTOS ORDER BY CODBARRAS")
If c.RowCount>0 Then
For i=0 To c.RowCount -1
c.Position=i
Lvadiciona.AddTwoLinesAndBitmap(C.GetString ("CODBARRAS"), C.GetString ("QUANTIDADE"),LoadBitmap(File.DirAssets,"ICONE LIXEIRA2.jpg"))
Next
End If
End If
ToastMessageShow("Leitura do código correto.",False)
Has anyone ever experienced this??
Code:
If Edtdescr.Text<>"" Then
s.ExecNonQuery2("INSERT INTO PRODUTOS (rowid,CODBARRAS,QUANTIDADE) VALUES (NULL,?,?)", Array As String(Edtdescr.Text,EdtQtde.Text))
c=s.ExecQuery("SELECT CODBARRAS,QUANTIDADE FROM PRODUTOS ORDER BY CODBARRAS")
If c.RowCount>0 Then
For i=0 To c.RowCount -1
c.Position=i
Lvadiciona.AddTwoLinesAndBitmap(C.GetString ("CODBARRAS"), C.GetString ("QUANTIDADE"),LoadBitmap(File.DirAssets,"ICONE LIXEIRA2.jpg"))
Next
End If
End If
ToastMessageShow("Leitura do código correto.",False)