Creates a new datatable containing a single row where the column names and the values are determined by the parameters.

Syntax

Smartsite SXML CopyCode image Copy Code
datatable datatable.create(any[ ] nameValuePairs)

Parameters

Name Data Type Description
nameValuePairs Any[ ] The name value pairs of the column names and values. The first parameter is the first column name, the second value is the value of the first column in the first row. The third parameter is the second column name, the fourth value is the value of the second column in the first row. Etcetera.

Return Value

Data Type Description
DataTable A new datatable containing one row.

Expand image Example

SXML