Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class Array : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
public class Array : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
Arrays can hold values of any single type, such as objects and records (contrary to the array data type that is built into the X++ language). Objects of this type can be transferred to functions and methods. The values are stored sequentially. The arrays expand as required. Therefore, no specific dimension of the array is supplied.
The following example creates an array of classes and adds three query objects to the array.
{
Array oarray = new Array (Types::Class);
oarray.value(1, new query());
oarray.value(2, new query());
oarray.value(4, new query());
print oarray.toString();
print oarray.definitionString();
pause;
}