Please enable JavaScript to view this site.

ESL Documentation

Navigation: » No topics above this level «

Q7 How do I remove the selected rows from a table?

Scroll Prev Top Next More

Users may find it useful to remove all the selected rows in the Table Object using a "for each selected row" loop. However, executing this loop is not as straight forward as it may seem. Some developers might code the loop as follows:

FAQs_Language_Q04_2

This is not correct since it necessary to update the row variable (Row_IV) as each row is removed. Because this loop decrements the number of rows in the Table Object by one each time it executes, the row variable also needs to be decremented by one each time through the loop. So, the correct syntax would be:

ESLLan12

The above code will now produce the desired result and delete each selected row from the Table Object.