AddColumn

Adds the new column to the DataTable.

Syntax

Function addColumn(columnName As String) As Integer 

Parameters

  • Column name

Results

Returns the index of the column

Exceptions

  • Blank column name
  • Duplicate column name

Example

Dim dataTable As G1CLIENTLib.dataTable

dataTable.addcolumn "AddressLine1"
dataTable.addcolumn "City"