Hello! I have a problem. I have a function where I run this code
Dim Cursor As dbcursor
Dim SQL As DBSQL
DBSql.Initialize (tDir, "database", True)
Dbcursor DBSql.ExecQuery = ("SELECT DISTINCT category FROM arguments")
If DBCursor.RowCount> 1 Then
Dim list (DBCursor.RowCount) As String
For x = 0 To DBCursor.RowCount - 1
DBCursor.Position = x
list (x) = DBCursor.GetString ("category")
Next
cmd_entra.Text = DBCursor.RowCount
last line I verify that the number of records read by the query corresponds to those of the database that enclose here.
when I debug I always returns the value of 4 records found rather than those actually present in my db as you can see. how can I solve this problem?
Dim Cursor As dbcursor
Dim SQL As DBSQL
DBSql.Initialize (tDir, "database", True)
Dbcursor DBSql.ExecQuery = ("SELECT DISTINCT category FROM arguments")
If DBCursor.RowCount> 1 Then
Dim list (DBCursor.RowCount) As String
For x = 0 To DBCursor.RowCount - 1
DBCursor.Position = x
list (x) = DBCursor.GetString ("category")
Next
cmd_entra.Text = DBCursor.RowCount
last line I verify that the number of records read by the query corresponds to those of the database that enclose here.
when I debug I always returns the value of 4 records found rather than those actually present in my db as you can see. how can I solve this problem?