Core.DataTypes.ComplexDataType.List
(Redirected from Core.DataTypes.ComplexDataType.ContainerDataType.List)
Jump to navigation
Jump to search
Classification
Name | List |
Short Description | List of items of the same type |
Class | Simple Data Type |
Base Data Type | ComplexType |
Default Value | An empty list |
Provide a Literal | Yes |
SpecifiedBy | ISO 13209-2 |
Standard Compliant | Yes |
Description
The List data type identifies OTX in a number of zero or more elements of the same type. When the list declaration, the corresponding data type must be specified. The number of elements in a list can be changed within the sequence (add, insert, move, delete). Elements can be inserted at any position. In this case, move the current elements one position to the rear.
Core Conversion
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
ToBoolean | Undefined (should not be used) | |
ToInteger | Undefined (should not be used) | |
ToFloat | Undefined (should not be used) | |
ToString | Returns the list as a string | String s = ToString({true,false,true}); // Returns "{true,false,true}" |
ToByteField | Undefined (should not be used) |
Sample
List<Boolean> ListVariable={true,false,true};