LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

anyinserting new row into table

I want to insert a new row into the table and also is it possible to change the remaining values should be updated automatically,
for example the table contains 1,2,3,4,....in the row wise if i want to include the new row after 2 and it will be updated as 3 and all other 3,4 should change 4,5,respectively.
is this programmatically possible.
0 Kudos
Message 1 of 2
(2,132 Views)
The table is a 2D string array so to insert a new row, you just use the Insert Into Array function. To change the values in a column, use the Index Array function to get the column and change them. Use the Replace Array subset. Since it sounds like you have a consecutive numbering of the rows, you can also just create a new array based on the number of rows (use the Array Size function) and then do the replace.
0 Kudos
Message 2 of 2
(2,114 Views)