TABLE-DELETE-ROW Action

This document covers the following topics:


Description

Deletes a row in a table. To do so, one of the table control's STYLE attribute values must be "e". Specifying the value "0" in the Row index parameter is useful in combination with the delete-row event because the ROW attribute then contains the index of the row in which the end user has caused the most recent event.

Parameters

Name/Data Type Explanation
HANDLE OF TABLE Input

Specifies a Table Control.

Row Index (I4) Input

Specifies the number of the row to be deleted.

If you specify "0", the value of the table's ROW attribute is taken as the number of the row to be deleted.

If you specify "-1", the last row in the table will be deleted.

If you specify "1", the first row in the table will be deleted.

Response (I4) Output

Natural error (if applicable).

Example:

 
   PROCESS GUI ACTION TABLE-DELETE-ROW WITH #TBL-1 2 GIVING #RESPONSE 
   ...
    
   PROCESS GUI ACTION TABLE-REFRESH WITH #TBL-1 GIVING #RESPONSE /* Recommended