*tabledeletecolumn
Deletes a column of data from a table.
Syntax
*tabledeletecolumn name column_index
Type
HyperMesh Tcl Modify Command
Description
Deletes a column of data from a table.
Inputs
- name
- The name of the table to update.
- column_index
- The index of the column to delete. Tables are indexed starting from 1 (1 to n columns). If specified as 0, the last column in the table is deleted.
Examples
To delete the last column from table1, which has 11 columns:
*tabledeletecolumn table1 0
or
*tabledeletecolumn table1 11
To delete column 3 from table1:
*tabledeletecolumn table1 3
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
11.0.101