*tabledeleterow

Deletes a row of data from a table.

Syntax

*tabledeleterow name row_index

Type

HyperMesh Tcl Modify Command

Description

Deletes a row of data from a table.

Inputs

name
The name of the table to update.
row_index
The index of the row to delete. Tables are indexed starting from 1 (1 to n rows). If specified as 0, the last row in the table is deleted.

Examples

To delete the last row from table1, which has 11 rows:

*tabledeleterow table1 0

or

*tabledeleterow table1 11

To delete row 3 from table1:

*tabledeleterow table1 3

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

11.0