Set.new Method [AX 2012]

Creates a set that can contain elements of the specified type.

public void new(Types Type)

Run On

Called

Parameters

Type
Type: Types Enumeration
The type of the elements within the set.

The type of the set cannot be changed after the set has been created.

The following example creates a set of integers and a set of objects.

{ 
    // Create a set of integers. 
    Set is = new Set (Types::Integer); 
     
    // Create a set of objects. 
    Set os = new Set (Types::Class); 
}

Community Additions

ADD
Show: