It is functional only for 1-dimensional array.
|nPos||(Long) The index of an item to be removed. |
The value -2 means poslední položku.
|nCount||[optional] (Long) The number of items to be removed. |
The items are being removed from defined position towards the end of the array. If the last position of the array is set (-2) then the items are being removed from the end of the array towards the beginning.
Either all selected items are removed or the method fails.
var a = Pm.CreatePmArray().Array1(0, 10, 20, 30, 40);
a.Remove(2, 2); //Result: (0, 10, 40)
a.Remove(-2, 2); //Result: (0, 10, 20)