List.new Method
Creates a list.
Syntax
public void new(Types Type)
Run On
Called
Parameters
- Type
Type: Types Enumeration
The type that the elements in the list should have.
Remarks
The possible values for the Type parameter are supplied by the Types system enum.
After you have created a list, you cannot change the type of the elements it contains.
Examples
The following example creates a list of strings.
{
// Creates a list of integers.
List il = new List(Types::String);
}