AddColumn

Adds the new column to the DataTable.

Syntax

public int addColumn(String columnName) 

Parameters

  • columnName

Results

Returns the index of the column

Example

DataTable dataTable = message.getDataTable(); 
int columnIndex = dataTable.addColumn("AddressLine1"); 
columnIndex = dataTable.addColumn("City")