Returns the ordinal of the given column name.

Syntax

Smartsite SXML CopyCode image Copy Code
integer datatable.columns.getordinal(datatable dataTable, string columnName)

Parameters

Name Data Type Description
dataTable DataTable The datatable.
columnName String The column name whose ordinal is returned.

Return Value

Data Type Description
Integer Returns -1 if the column name does not exist.

Expand image Example

SXML