Good afternoon, how do I include more fields in a listview I can only put a precise field add the field QUANTITY more I can not follow my code:
S.ExecNonQuery2 ("INSERT INTO PRODUCTS (rowid, CODBARRAS, QUANTITY) VALUES (NULL,?,?)", Array As String (Edtdescr.Text, EdtQtde.Text))
'If EdtQtde.Text <> "" Then
'S.ExecNonQuery2 ("INSERT INTO PRODUCTS (QUANTITY) VALUES (?)", Array As String (EdtQtde.Text))
C = s.ExecQuery ("SELECT CODBARRAS FROM PRODUCTS ORDER BY CODBARRAS, QUANTITY")
'SELECT codigbars, quantity from products
'Lvadiciona.Clear
If c.RowCount> 0 Then
For i = 0 To c.RowCount-1
C.Position = i
Lvadiciona.AddTwoLines (c.GetString ("CODBARRAS", "QUANTITY"))
Lvadiciona.SingleLineLayout.Label.TextSize = 11dip
It returns me a parameter error.
S.ExecNonQuery2 ("INSERT INTO PRODUCTS (rowid, CODBARRAS, QUANTITY) VALUES (NULL,?,?)", Array As String (Edtdescr.Text, EdtQtde.Text))
'If EdtQtde.Text <> "" Then
'S.ExecNonQuery2 ("INSERT INTO PRODUCTS (QUANTITY) VALUES (?)", Array As String (EdtQtde.Text))
C = s.ExecQuery ("SELECT CODBARRAS FROM PRODUCTS ORDER BY CODBARRAS, QUANTITY")
'SELECT codigbars, quantity from products
'Lvadiciona.Clear
If c.RowCount> 0 Then
For i = 0 To c.RowCount-1
C.Position = i
Lvadiciona.AddTwoLines (c.GetString ("CODBARRAS", "QUANTITY"))
Lvadiciona.SingleLineLayout.Label.TextSize = 11dip
It returns me a parameter error.