nDim | [optional] (Long) Specifies the type of created array.
0 (default) - An empty uninitialized PmArray object is created.
1 - Creating a 1-dimensional array.
2 - Creating a 2-dimensional array. |
---|---|
nSize1 | [optional] (Long) (default 0) Array size in the first dimension (0, 1, 2, ..., n) for 1 or 2-dimensional array. |
nSize2 | [optional] (Long) (default 0) Array size in the second dimension (0, 1, 2, ..., n) for 2-dimensional array.
See (Col,Row) - 2-dimensional array meaning an array of rows. |
var arr = Pm.CreatePmArray().Array1(10, 20, 30, 40);
// or
var arr = Pm.Array1(10, 20, 30, 40);
var arr = Pm.CreatePmArray(1, 4);
arr.SetItem(10, 0);
arr.SetItem(20, 1);
arr.SetItem(30, 2);
arr.SetItem(10, 3);
var arr = Pm.CreatePmArray(2, 2, 3);
arr.SetItem(11, 0, 0);
arr.SetItem(12, 1, 0);
arr.SetItem(21, 0, 1);
arr.SetItem(22, 1, 1);
arr.SetItem(31, 0, 2);
arr.SetItem(32, 1, 2);