Hi guys!
just two questions on tables:
1) in a module I create the table in this way:
the problem is that if I close this module and reopen it again I get an error regarding the Table1.AddCol because the structure is already defined.
I tried to do Table1.RemoveCol at the close event on the module but It seems not working. So, how can I destroy a table at the close of the module?
2) when I have the table filled with records, I want to choose one row, but the first time I tap on it It gets the focus and not the selection, I need to tap it again to select that record. How can I have the selection on the first tap?
thanks!
regards,
just two questions on tables:
1) in a module I create the table in this way:
B4X:
Sub carico_Show
' tabella fornitori
Table1.Clear
Table1.AddCol(cString, "Codice", 80)
Table1.ColWidth("Codice") = 80
Table1.AddCol(cString, "Ragione Sociale", 120)
Table1.ColWidth("Ragione Sociale") = 120
Table1.Visible=True
the problem is that if I close this module and reopen it again I get an error regarding the Table1.AddCol because the structure is already defined.
I tried to do Table1.RemoveCol at the close event on the module but It seems not working. So, how can I destroy a table at the close of the module?
2) when I have the table filled with records, I want to choose one row, but the first time I tap on it It gets the focus and not the selection, I need to tap it again to select that record. How can I have the selection on the first tap?
thanks!
regards,