F Francisco Gonzalez 1962 Member Licensed User Sep 6, 2019 #1 Hello B4Xers... I want to save a B4xTable as CSV file and I'm having problems with the header of the table (first row with the column names). In the example https://www.b4x.com/android/forum/threads/b4x-b4xtable-editable-table-and-export-to-csv.102847/ the header is read from an already existing CSV file. In my case I have to get the header from the B4xTable, but I can't find how. Cheers Francisco
Hello B4Xers... I want to save a B4xTable as CSV file and I'm having problems with the header of the table (first row with the column names). In the example https://www.b4x.com/android/forum/threads/b4x-b4xtable-editable-table-and-export-to-csv.102847/ the header is read from an already existing CSV file. In my case I have to get the header from the B4xTable, but I can't find how. Cheers Francisco
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2019 #2 You can get the column titles with: B4X: Dim titles As List titles.Initialize For Each c As B4XTableColumn In B4XTable1.Columns titles.Add(c.Title) Next Upvote 0
You can get the column titles with: B4X: Dim titles As List titles.Initialize For Each c As B4XTableColumn In B4XTable1.Columns titles.Add(c.Title) Next