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?
Solved! Go to Solution.
Views
Replies
Total Likes
Try like this..
Table1.Row1.instanceManager.removeInstance(lastrow-1);
Thanks
Srini
Views
Replies
Total Likes
Try like this..
Table1.Row1.instanceManager.removeInstance(lastrow-1);
Thanks
Srini
Views
Replies
Total Likes
Ding Ding. Thanks a lot!
Views
Replies
Total Likes