DictTable.deleteActionTableId Method

Returns the table ID of a table's delete action that is specified by an index.

Syntax

public TableId deleteActionTableId(int cnt)

Run On

Called

Parameters

  • cnt
    Type: int
    A one-based index to the list of the delete actions for the table. The list is in AOT order.

Return Value

Type: TableId Extended Data Type
The table ID of the table's delete action that is specified by cnt; 0 (zero) if the cnt value does not represent a valid delete action index.

Examples

The following example shows the use of the deleteActionTableId method to retrieve the names of tables that have delete actions for the CustTable table.

DictTable dt, dt2; 
int       i; 
 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    for (i=1; i <= dt.deleteActionCnt(); i++) 
    { 
        dt2 = new DictTable(dt.deleteActionTableId(i)); 
        if (dt2) 
        { 
            print dt2.name(); 
        } 
    } 
}

See Also

DictTable Class

DictTable.deleteActionCnt Method