List.new Method [AX 2012]

Creates a list.

public void new(Types Type)

Run On

Called

Parameters

Type
Type: Types Enumeration
The type that the elements in the list should have.

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.

The following example creates a list of strings.

{ 
    // Creates a list of integers. 
    List il = new List(Types::String); 
}

Reference

Community Additions

ADD
Show: