GetDim - method of the PmArray object
Description:
The array dimension.
Return value:
0 - The array has not yet been created, i.e. the
Pm.CreatePmArray method has been called without parameters and the
Create method was not called.
1 - 1-dimensional array
2 - 2-dimensional array
Example1:
1-dimensional array
JavaScriptSelect and copy to clipboard
var arr = Pm.CreatePmArray(1, 8);
var nSize = arr.GetDim();
// nSize = 1
Example2:
2-dimensional array
JavaScriptSelect and copy to clipboard
var arr = Pm.CreatePmArray(2, 3, 5);
var nSize = arr.GetDim();
// nSize = 2