Expand my Community achievements bar.

SOLVED

Removing Specific Row from table

Avatar

Level 3

I have a table and a button with this code

var lastrow = Table1._Row1.count;

if (lastrow < Units.rawValue) then
    while (lastrow < Units.rawValue) do
        Table1.Row1.instanceManager.addInstance()
        lastrow = lastrow + 1
    endwhile
elseif (lastrow > Units.rawValue) then
    while (lastrow > Units.rawValue) do
       Table1.Row1(lastrow).instanceManager.removeInstance()
        lastrow = lastrow - 1   
       
    endwhile
endif

However that line gives me an error. I am trying to remove the last line of the table. Any help?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try like this..

     Table1.Row1.instanceManager.removeInstance(lastrow-1);

Thanks

Srini

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Try like this..

     Table1.Row1.instanceManager.removeInstance(lastrow-1);

Thanks

Srini