View Single Post
  #21 (permalink)  
Old 12-28-2008, 11:24 PM
pochero pochero is offline
Junior Member
 
Join Date: Aug 2008
Posts: 31
Default

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.

Code:
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.
Reply With Quote