deleteColumn

deleteColumn(col: Integer);

The deleteColumn method deletes the column specified in the col parameter from the current sheet of a Table control.

This deletion may affect other Table control properties; for example, the column or leftColumn property.

The method in the following example shows the use of the deleteColumn method.

buttonDelColumn_click(btn: Button input);
begin
    if selectedColumn <> null then
        table1.deleteColumn(selectedColumn);
        table1.clearAllSelected;
        selectedColumn := null;
    else
        app.msgBox("You must select a column", "No column selected",
                   MsgBox_OK_Only);
        return;
    endif;
end;