Android Code Snippet [B4X] [B4XTable] Clear data only (keeping the table structure)

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":

1707398270587.png
 
Last edited:
Top