Addrow like removerow(index)

Vito

Member
Licensed User
Hi,

i want to add rows at the beginning of the table and not at the end.
Is there any solution? Maybe "table1.addrow(index)"

Thank you
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
You can't add a row at the start of the table.
AddRow automatically inserts rows at the end of the table.
However it is possible to use a hidden column containing an index value.
You could then insert a new row and sort the table using the unseen index.
This is I believe the recommended approach to take.

Regards,
RandomCoder
 

Vito

Member
Licensed User
Thank you,

i tried it and it works.
But when i save the sorted table (as .csv) it does not save it as sorted but as it was before.

"Sorry for my english."
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
But when i save the sorted table (as .csv) it does not save it as sorted but as it was before.

This is true, and has been reaised a few times here within the Forum.
the solution is to either filter the table each time you load from the file, OR, you can create a new tabel copying across the cells from the filtered table and then save this to your file.

Regards,
RandomCoder
 
Top