Array.new Method [AX 2012]

Creates an array in which each element has the specified type.

public void new(Types Type)

Run On

Called

Parameters

Type
Type: Types Enumeration
The data type of the array elements.

The possible values are those that are available for the Types system enumeration:

  • AnyType

  • BLOB

  • Class

  • Container

  • Date

  • DateTime

  • Enum

  • Guid

  • Int64

  • Integer

The following example creates an array of integers.

Array intArray = new Array(Types::Integer);

Community Additions

ADD
Show: