Feb 8, 2024 Replies: 3 Edit: Erel's way is much simpler! Author: @cklester (https://www.b4x.com/android/forum/threads/b4xtable-clearing-data.142729/post-904607) B4X: Sub ClearB4XTable(xTable As B4XTable) Dim lstData As List lstData.Initialize xTable.SetData(lstData) End Sub Note to Erel: this is not "cool": Last edited: Feb 8, 2024 Click to expand...
Edit: Erel's way is much simpler! Author: @cklester (https://www.b4x.com/android/forum/threads/b4xtable-clearing-data.142729/post-904607) B4X: Sub ClearB4XTable(xTable As B4XTable) Dim lstData As List lstData.Initialize xTable.SetData(lstData) End Sub Note to Erel: this is not "cool":
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2024 #2 Will be fixed. You can also write it like this: Code: B4XTable1.SetData(Array())
LucaMs Expert Licensed User Longtime User Feb 8, 2024 #3 Erel said: Will be fixed. You can also write it like this: Code: B4XTable1.SetData(Array()) Click to expand... I can't memorize that you can pass an array to a routine that requires a List as a parameter. This time I try to use a drill (for my skull) ?
Erel said: Will be fixed. You can also write it like this: Code: B4XTable1.SetData(Array()) Click to expand... I can't memorize that you can pass an array to a routine that requires a List as a parameter. This time I try to use a drill (for my skull) ?
LucaMs Expert Licensed User Longtime User Feb 8, 2024 #4 Erel said: Will be fixed. Click to expand... You were very fast, you've already done it. Then you could add a "special" clear method, like this.
Erel said: Will be fixed. Click to expand... You were very fast, you've already done it. Then you could add a "special" clear method, like this.