DynaPDF.Table.DeleteCol
-----------------------

Deletes a column from the table.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.Table.DeleteCol"; Table; Col ) 

**MBS**( **"DynaPDF.Table.DeleteCol";** /\* Deletes a column from the table. \*/  
**$Table**; /\* The identifier for the table. \*/   
**$Col**) /\* The column number. Range from 0 to [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Table | The identifier for the table. | $Table |
| Col | The column number. Range from 0 to [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)-1. | 0 |

### Result

Returns OK or error.

### Description

Deletes a column from the table.  
The new table width is the table width minus the width of the deleted column. It is not possible to delete all columns. One column must be left in the table.  
If the column index is invalid or if the table contains only one column then the function does nothing.  
### See also

- [DynaPDF.Table.ClearRow](DynaPDFTableClearRow.md)
- [DynaPDF.Table.DeleteRow](DynaPDFTableDeleteRow.md)
- [DynaPDF.Table.DeleteRows](DynaPDFTableDeleteRows.md)
- [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)
- [DynaPDF.Table.Release](DynaPDFTableRelease.md)
- [DynaPDF.Table.SetColor](DynaPDFTableSetColor.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.Table.Create](DynaPDFTableCreate.md) - [DynaPDF.Table.DeleteRow](DynaPDFTableDeleteRow.md)

[HTML Version](DynaPDFTableDeleteCol.shtml)