Classification
OTL Syntax
ListTerm = ListCreate(DataType, {Term1, Term2, ...});
Description
ListCreate is a term to create a new list at run time. It is produced by passing a set of elements.
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Data Type |
Description
|
List |
The newly created list is returned.
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
ItemType |
DataType |
Name |
- |
[1] |
Data type of the elements
|
Items |
- |
Term |
- |
[1] |
List of one or more elements of the list type. No elements are specified, an empty list is created.
|
OTL Examples
List<String> result;
result = ListCreate(String, {"text1", "text2"});
//Returns the result = {"text1", "text2"}
See also
MapCreate
UserExceptionCreate