list()

Function group Execute on client Platform(s)
List YES All

Syntax

list(row1[,row2]...)

Description

Returns a list from a number of row variables of identical structure, that is, the data type of each column in each row variable should match.

In the following example, one row in the list is created for each row variable passed. If the type of a particular column in the list does not match the type of a row variable column, list() tries to convert the row variable column to that of the list column, from number to string. If the column type cannot be converted the column is left blank.

Example

Set current list lList
Define list {lCol1,lCol2,lCol3}
Calculate lList as list(lRow1,lRow2,lRow3)
# returns a list from row variables, lRow1, lRow2 and lRow3