I have found a problem. When the table have only one row and have a filter if i click on the table, an exception occurr.
You can see the problem if you modify only 2 lines of de example code.
In sub CalcRowSize.........
If Control(TableName,Table).RowCount = 1 Then
shouldRemoveLastRow = True
Control(TableName,Table).AddRow()
End If
After AddRow, RowCount remains with value 1. It is a problem.
Thank you.
You can see the problem if you modify only 2 lines of de example code.
B4X:
Sub App_Start
Form1.Show
............
For i = 1 To 1 ' ************* ONLY ONE ROW *************
table1.AddRow(i,i,i)
Next
.............
EditableTable.SetEdit("Main.Table1","Main.Validate","")
.............
Main.Table1.Filter("c1='1'") ' ****** FILTER TABLE ******
In sub CalcRowSize.........
If Control(TableName,Table).RowCount = 1 Then
shouldRemoveLastRow = True
Control(TableName,Table).AddRow()
End If
After AddRow, RowCount remains with value 1. It is a problem.
Thank you.