Returns the type of the given column.

Syntax

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

Parameters

Name Data Type Description
dataTable DataTable The datatable whose column type is returned.
columnNumber Integer The index of the column.
columnName String The column name.

Return Value

Data Type Description
Enum The type of the column.
Enum values:
  • Undefined
    Not set
  • None
    Void (return type)
  • Array
    Array
  • String
    Default type
  • Any
    Generic object
  • Binary
    Binary data
  • Boolean
    Boolean
  • DataTable
    DataTable
  • DateTime
    Date/time
  • Float
    Floating point numeric data
  • Integer
    Integer
  • Locator
    Extended Uri
  • Enum
    Enumeration
  • Xml
    Xml data
  • ListOfStrings
    Default type
  • ListOfAny
    Generic object
  • ListOfBool
    Boolean
  • ListOfDateTime
    Date/time
  • ListOfFloat
    Floating point numeric data
  • ListOfInteger
    Integer
  • ListOfLocator
    Extended Uri

Expand image Example

SXML