Col | (Variant) If the value of this parameter is the number >=0, then it is the column index (zero-based index) that has to be removed. The value -2 means that the column has to be removed from the end of the table. If the value of the parameter is of the String type, then it is the name of the column that has to be removed. |
---|
Caution! Column of data type Identifier cannot be removed (if present). Only the following columns can be removed.
If at least one cell is locked in "Read only" column by writing non-empty value, then the whole structure of the table is locked. Then it is no longer possible to add or remove rows or columns or change the structure of the table. The structure and dimensions of the table must be defined and modified before writing first non-empty value into a cell in "Read only" column.
var oDataTable = pMe.Pm("/DataTable");
oDataTable.RemoveCol(3);
oDataTable.RemoveCol(-2);
oDataTable.RemoveCol("abc");