Warning: file_put_contents(/ff_646684d0c138566e96fbb572835898a7c35a0965b003cd91.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
deleteRange - OFPEC Scripting Command Reference | OFPEC The Editing Center

arrayName deleteRange [from, count]

Operand types

arrayName: Array
[from, count]: Array

Type of returned value


Removes a range of array elements from the given array (modifies the original array, just like resize or set).

array: Boolean
from: Number - Array index to start selection from.
count: Number - Number of array elements to remove. If the selected range exceeds source array boundaries, selection will be made up to the end of the array.

Used In



_arr = [1,2,3,4,5,6];
_arr deleteRange [1,4];
hint str _arr; //[1,6]