Hi !
When you try to delete a column, it moves to the end of the table.
My cod (I attach an example for the test):
B4X:
'--- MY PROBLEM -> RUN-TIME REMOVE COLUMN
Private Sub Button1_Click
Private RemoveColumn As B4XTableColumn = B4XTable1.GetColumn("Interesting Number")
Private IndexColumn As Int = B4XTable1.VisibleColumns.IndexOf(RemoveColumn)
If IndexColumn <> -1 Then
Log("REMOVE COLUMN: " & IndexColumn)
B4XTable1.VisibleColumns.RemoveAt(IndexColumn)
B4XTable1.Refresh
End If
End Sub
I'm having issues showing/hiding a table column after the table has been filled (and yes, I have looked at the examples here and I can replicate this issue using the B4XTableExample program). I've attached a small test program for convenience but the images below will illustrate. Before hiding...