Z zenrast Client Регистрация 20.03.2013 Сообщения 57 Благодарностей 1 Баллы 8 01.11.2014 #1 In "Lists" we have the option to choose "Delete lines"->"Remove all elements". How to do the same for a Table ?
In "Lists" we have the option to choose "Delete lines"->"Remove all elements". How to do the same for a Table ?
Tobbe Client Регистрация 01.08.2013 Сообщения 428 Благодарностей 148 Баллы 43 01.11.2014 #2 I also miss that. Along with deleting lines by value as you can do with lists. I've already suggested it but don't think the task is started yet.
I also miss that. Along with deleting lines by value as you can do with lists. I've already suggested it but don't think the task is started yet.
LexxWork Client Регистрация 31.10.2013 Сообщения 1 190 Благодарностей 791 Баллы 113 01.11.2014 #3 project.Tables["table1"].Clear();
Z zenrast Client Регистрация 20.03.2013 Сообщения 57 Благодарностей 1 Баллы 8 01.11.2014 #4 The .Clear() function didnt work for me on 5.3.0.0. But i think the function bellow does the trick: Код: IZennoTable myTable = project.Tables["myTable"]; lock(SyncObjects.TableSyncer) { for (int i=myTable.RowCount - 1; i >= 0; i--) { myTable.DeleteRow(i); } }
The .Clear() function didnt work for me on 5.3.0.0. But i think the function bellow does the trick: Код: IZennoTable myTable = project.Tables["myTable"]; lock(SyncObjects.TableSyncer) { for (int i=myTable.RowCount - 1; i >= 0; i--) { myTable.DeleteRow(i); } }